Jump to content

Get name of variable from name of input?


eirikub

Recommended Posts

If your answers were part of an array (really, a lookup table in lua), you could have done something like Wherigo.NoCaseEquals(input, myArray[index]). This allows you to ask questions from an array of questions or create a list of questions and answers to go through sequentially. That might be your best bet. You'll just have to store the array's index somewhere.

Link to comment

If your answers were part of an array (really, a lookup table in lua), you could have done something like Wherigo.NoCaseEquals(input, myArray[index]). This allows you to ask questions from an array of questions or create a list of questions and answers to go through sequentially. That might be your best bet. You'll just have to store the array's index somewhere.

 

Thank you. Do you know of any tutorials for this? On how to set up the code, I mean.

Link to comment

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.

Loading...
×
×
  • Create New...