Jump to content

Documentation


RogueBot
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...