![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: Variables in Variables |
Wizard |
![]() I have a need for arrays. I think I can simulate it by concatenating an index onto a variable name. In order for this to work I will need to assign the name of a variable to another variable and still be able to reference the original value. My question is, what is the syntax to return the original value? EXAMPLE: John1=�Hello World� What is the syntax to get Sam to return �Hello World�? Wizard |
Alex |
![]() There is absolutely no way that what you are proposing would be possible in Quest 2.x. Sorry. Quest 3.0, however, supports arrays already. Check it out now - http://www.axeuk.com/quest/beta . |
Computer Whizz |
![]() OK. I don't think this is TOTALLY right, and I don't know what use it could be but here you are! instead of using =, you will have to use ; set string, or set variable (can't be bothered to lift up the paper book I've got stashed under this very desk :)). --CW |
Alex |
![]() quote: Well yes, that works (if you get the correct syntax anyway), but there's no convenient way to progmatically change the "1" which is the array index. Which renders the whole thing rather pointless. |
Wizard |
![]() Thank you for replying, I am using 3.0 now and arrys work just fine. As a result I have now coded buying and selling, wearing and equiping, RPG stats and a method for doing battle. Its looking good! Thanks again, Wizard |