The Dink Network

Reply to Re: Choice Error

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 29th 2010, 07:49 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
*sigh* Got more crap messed up. I'm such a n00b scripter. Anyways, this is the script:
void talk ( void )
{
freeze(1)
freeze(&current_sprite)
choice_start();
"Say Hi"
"Rumors"
"Brag"
choice_end();
}

if (&result == 1)
{
say_stop("Hey." ,1);
say_stop("`2Go away!" , &current_sprite);
say_stop("Geez, whatever." ,1);
unfreeze(1)
unfreeze(&current_sprite)
}

if (&result == 2)
{
say_stop("Anything new?" ,1);
say_stop("`2There are a lot of Boncas as of late." , &current_sprite);
say_stop("Yeah?" ,1);
say_stop("`2But they're not bothering us so it doesn't matter." , &current_sprite);
unfreeze(1)
unfreeze(&current_sprite)

if (&result == 3)
{
say_stop("I have Super Strength!" ,1);
say_stop("`2Super Strength?! Are you insane!?" , &current_sprite);
say_stop("<grumble>" ,1);
unfreeze(1)
unfreeze(&current_sprite);
}

void hit ( void )
{
playsound(16, 21050, 4000, &current_sprite, 0);
say("`2Ow! Bloody hell that hurts!" , &current_sprite);
}


For no reason at all, choice three freezes the game and nothing happens.

EDIT: I swear! I see no errors. WTF?!