The Dink Network

Reply to Re: Choices Command

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:
 
 
July 8th 2003, 07:02 PM
pillbug.gif
Well, you don't need a bracket after ending the choice_start(), it's still one script, but if that doen't work you can always try something else. How about... GOTOS!


VOID TALK(VOID)
{
freeze(1);
say_stop("`#What were YOU doing in pillbug manor?", ¤t_sprite);

choice_start()
I was teleported there by a magical duck-mage to save our world"
"Im an idiot who just got lost"
choice_end

if (&result == 1) goto AST
if (&result == 2) goto BST
{

AST:

say("`#Ah ha and i'm king Daniel, u aint going anywhere", ¤t_sprite)
unfreeze(1);
return;

BST:

say("`# Exactly as i thought, Get out of here scumbag!", ¤t_sprite);
screenlock(0);
unfreeze(1);
}
}

...I let it do the same thing, just changed how it's done. I fixed a problem where Dink was never unfrozen after the script is finished and you had one extra closing and opening thingy that ended the script way too soon. That should fix it.