Prowler Productions
  Dink Smallwood Forum
  Easy answer ?

Post New Topic  
profile | register | faq

Author Topic:   Easy answer ?
Gerben posted 07-06- 07:10 AM CT (US)   Click Here to See the Profile for Gerben   Click Here to Email Gerben  
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)     Click Here to See the Profile for Nexis  Click Here to Email Nexis     
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)     Click Here to See the Profile for Gerben  Click Here to Email Gerben     
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)     Click Here to See the Profile for Nexis  Click Here to Email Nexis     
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)     Click Here to See the Profile for Gerben  Click Here to Email Gerben     
Ah, a walk in the park. Thanks!

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.