Help - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13) +--- Thread: Help (/showthread.php?tid=1541) |
Help - Blizzard - 04-02-2011 Hi there. I'm new to Buildism lua, and need some help getting use to it. I have a few questions that I hope will be answered. -How do you run a piece of code? Whenever I write some, it doesn't execute. -Can you create a GUI? If so, how? -Is this lua unlimited? If it isn't, why not? Thanks. RE: Help - Jacob__mybb_import1 - 04-02-2011 (04-02-2011, 09:32 AM)Blizzard Wrote: Hi there. I'm new to Buildism lua, and need some help getting use to it. I have a few questions that I hope will be answered. 1. Click Insert Object>Script, type your code, and close the script editor. Right click your script in the navigator and click "Run Script" to run it. You can do this to rerun it too, but if the script uses events, you should cut and paste it or the events will be connected multiple times. Buildism runs all scripts in a game when it is loaded. Scripts in tools run when a player joins, or when the player drops a tool and picks it up again. 2. No, but you can use the "Clicked" events that boxes/circles have. 3. I haven't restricted any features, but we're using a Java port of Lua, so there may be some differences from the C++ version. RE: Help - Blizzard - 04-02-2011 Okay, thanks. Got a lot of work to do if I want to get used to this API. |