String variables

New Creator
15 Jul 2004, 13:50
I wonder if you can help me out. I have coded a string variable #V1name# and was hoping to create a "go to" exit that would use it. The string variable works fine during the game (Inserting #V1name# in a sentence gives off the content of the string), but after I named the "go to" exit "Travel to #V1name#", all that appears is "Travel to" and the error log tells me "'V1name' no such string defined". Can you help out a little?

Thanks

Farvardin
15 Jul 2004, 17:34
could you post a part of your code here ? Or send me your full code by private message ?
It would be easier to understand your problem

Alex
16 Jul 2004, 07:55
You can't make a "go to" exit a string variable, as these are initialised at the beginning of the game. If you want dynamic "go to" exits, use script commands to send the player where you want them to go.

New Creator
17 Jul 2004, 02:22
Just to make sure I understood Alex's reply... all I want to do is so that the name of the 'go to' exit (the little name that appears in the objects box) includes the contents of the string variable. Did Alex say that was impossible, or did he misunderstand my question?

Thanks

Anonymous
17 Jul 2004, 10:19
He said you cant use string variables in 'go to' exits. So presumably you cant just use the name of the string variable either, hoped that helped.