The Dink Network

Reply to Re: How can I code this situation?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
May 31st 2008, 07:35 PM
dinkdead.gif
In response to your second question, nothing does in that example. You would need to change &num either there or in another script, but be careful of doing something like this:

if (&num == 0)
{
//do stuff
&num = 1;
}
if (&num == 1)
{
//do other stuff
}

because then both will happen. I often do this
Either use a goto command to skip to the end or put if (&num == 1) before if (&num == 0).

Edit: Sorry, no brains tonight. To change &num you'd need to do this:

&num = 1;
editor_seq(&getnum, &num);

That way &num is saved in editor_seq(), so when you speak to the sprite again (even after leaving the screen) &num will still be 1.