RogueBot Posted January 15, 2014 Share Posted January 15, 2014 Hey guys, I've been looking at and trying to follow some of the great tutorials you guys have made (I'm using the 3.1 Indie edition) and I have a couple of (really!) basic questions. E.g. in the excellent "Introduction to Lua tutorial by Aggror there were a couple of lines of code that didn't work as was done in the tutorial code. "Script.mood = "Happy, Angry, Sad" --choice" and "Script.monster = "Vampire, Zombie, Ghost" --choiceedit" Did not produce the expected result in the editor. They created the --choice and --choiceedit fields on the script properties tab, but with no selectable values. By looking at some other scripts I was able to find the proper (for 3.1 Indie version at least) syntax to be: Script.mood = --choice "Mood" "Happy, Angry, Sad" and Script.monster = Vampire --choiceedit "Monster" "Vampire, Zombie, Ghost" Anyway, my question is as follows. I've tried to find any documentation for these "--choice" and "--choiceedit" (and any other available) type of directives. I'm sure it's there somewhere, I just haven't been able to find it. So can anyone point me in the right direction to look for this documentation please? Thanks! Quote Link to comment Share on other sites More sharing options...
Rick Posted January 15, 2014 Share Posted January 15, 2014 http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/object-scripts-r631 Just a little down the page. I know, it's hidden well. I go to Documentation->User Guide, then click 'this guid' link, then scroll down to the 'Object Scripts' link. Maybe there is an easier way to get there but I don't know it Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 15, 2014 Share Posted January 15, 2014 @Rick: Documentation->User Guide-> and then on the link shown in the image: Quote Link to comment Share on other sites More sharing options...
RogueBot Posted January 15, 2014 Author Share Posted January 15, 2014 Awesome, thanks for that Rick! I knew it just had to be in there somewhere! Thanks Aggror. (btw you guys tutorials are great to follow for a newbie like myself!) Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 19, 2014 Share Posted January 19, 2014 Also thanks for reporting this btw.This has probably changed since the release of version 3.1. I have updated the lua snippet in the tutorial section. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.