lua scripting

8 replies [Last post]
Parakoopa
User offline. Last seen 2 years 21 weeks ago. Offline
Joined: 04/03/2010
Posts: 5

Can I use Scripted Maps only local or also on the Hedgewars Server?

Smaxx
Smaxx's picture
User offline. Last seen 2 years 1 week ago. Offline
Joined: 04/29/2009
Posts: 391

They work online as well. Just ensure everyone has the same version (if it's a custom one). The packaged ones should work without any issues.

Thomas
Thomas's picture
User offline. Last seen 14 weeks 3 days ago. Offline
Joined: 02/06/2009
Posts: 233

Paracoopa do you know how to luascript?
Then i have to pm you!

please add your xfire accountname here:
http://www.hedgewars.org/node/1977

Christos
User offline. Last seen 2 years 19 weeks ago. Offline
Joined: 01/26/2010
Posts: 15

@Parakoopa (and anyone else who makes scripted maps) :
would it be too difficult to post here any scripted maps you make? they might add to the fun of other players as well Smile

(i loved the new scripted map by the way, who "invented" it?)

Parakoopa
User offline. Last seen 2 years 21 weeks ago. Offline
Joined: 04/03/2010
Posts: 5

Yeah, I WANTED to make my own, scripted map.

But first of I have to wait. I have to wait for a documentation of the Hedgewars Functions, Variables etc.

nemo
User offline. Last seen 7 hours 24 min ago. Offline
Joined: 01/28/2009
Posts: 993

Parakoopa, don't really see why you have to wait.
If you can script, presumably can code.

All the bindings are in uScript.pas, that combined w/ Smaxx' examples (and I guess asking for clarification) should be enough to get some stuff done...

Thomas
Thomas's picture
User offline. Last seen 14 weeks 3 days ago. Offline
Joined: 02/06/2009
Posts: 233

where is this uScript.pas?

please add your xfire accountname here:
http://www.hedgewars.org/node/1977

sheepluva
sheepluva's picture
User offline. Last seen 10 hours 20 min ago. Offline
Joined: 07/18/2009
Posts: 201

Thomas wrote:

where is this uScript.pas?

in the source ( trunk/hedgewars ),

you can download separately if you don't have the whole hw source and don't feel like getting it:
download: http://fireforge.net/scm/viewvc.php/*checkout*/trunk/hedgewars/uScript.pas?revision=3318&root=hedgewars
view online: http://fireforge.net/scm/viewvc.php/*checkout*/trunk/hedgewars/uScript.pas?root=hedgewars&revision=3318&content-type=text%2Fplain&pathrev=3318

PS: I hate fireforge for using * in their urls + I hate this forum for being unable to use urls with * properly in their bb [url=] tags. grrrr

  sheepluva
a Chaos Developer (crazy'n'lazy),
  Ansprechpartner für deutschsprachige Spieler

sheepluva (at) ercatec.net

Thomas
Thomas's picture
User offline. Last seen 14 weeks 3 days ago. Offline
Joined: 02/06/2009
Posts: 233

thank you sheepluva!
now that i took a look into it, i found the PlaySound functionWink Smiley

please add your xfire accountname here:
http://www.hedgewars.org/node/1977

Copyright © 2004-2013 Hedgewars Project. All rights reserved.