The Dink Network

Reply to Re: wrong

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 29th 2005, 02:53 PM
dragon.gif
another problem, this is the first time i use my own globals something is wrong in the following script, the engine jumps over the first part and then you cant get your spell

void talk(void)
{
freeze(1);
freeze(&current_sprite);
if (&magic == 0)
{
say_stop("`9Look what I’ve got, Some magic for you, stranger...", &current_sprite);
add_magic("item-fb", 437, 1);
wait(200);
say_stop("Great! A fireball spell!", 1);
wait(200);
say_stop("What are you doing in this cave, really?", 1);
wait(200);
say_stop("`9dunno, the author wanted that...", &current_sprite);
&magic = 1;
unfreeze(1);
unfreeze(&current_sprite);
}
if (&magic == 1)
{
say_stop("hello magican", 1);
wait(250);
say_stop("`9hello, did you ever find use for my spell?", &current_sprite);
wait(250);
say_stop("truly i did!", 1);
wait(250);
say_stop("`5for a good purpose?", &current_sprite);
say_stop("uuh, well... yes... no... uhhhhhh...", 1);
wait(250);
unfreeze(1);
unfreeze(&current_sprite);
}
}