posted 07-06- 07:10 AM CT (US) I've just coded a normal conversation. I made a box with several choices. It all works fine, but I want the box to reappear when I've completed a certain question. In other words I want to create a loop in the conversation. How do I do this ? Is it by using the return command ? I haven't figured out how it works yet. Thanks for helping me out...
Nexis
posted 07-07- 02:29 AM CT (US)
The return; command just exits the script thus ending it. Use the goto command to make a loop.
Gerben
posted 07-07- 03:26 AM CT (US)
I understand, but how do I use the goto command? It must refer to a position doesn't it? Please explain...... Thanks
Nexis
posted 07-08- 01:40 AM CT (US)
Ok, say you want to have dink say something 3 times in a row. You could use a loop and do something like this
int &temp = 3;
saystuff: &temp = &temp -1; say_stop("I'm not a pig farmer", 1); if (&temp > 0) goto saystuff;
Gerben
posted 07-11- 01:18 AM CT (US)
Ah, a walk in the park. Thanks!