The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



2DWorlds Forums
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.

-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.


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.