The Dink Network

Reply to Script Problem and some questions.

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:
 
 
November 9th 2010, 01:21 AM
duckdie.gif
In my Milder D-Mod, I have a scene where Quackers gives Milder some magic for some money. But the script won't work. I think there's some problem with the local variable. I made a local variable called &gimme. But Milder doesn't get the magic, nor does Quackers do anyting after the void main script.


void main( void)
{

int &gimme;
&gimme = 0;

if(&story == 1)
{
freeze(1);
freeze(&current_sprite);
say_stop("Hey, Quackers!", 1);
wait(2500);
move_stop( &current_sprite, 4, 166, 1);
say_stop("`3 What is the meaning of this?", &current_sprite);
say_stop(" Terribly sorry to disturb you sir, but I need help.", 1);
say_stop(" I need some magic to slay a Bonca", 1);
say_stop("`3 Use you fists. You have such fat hands", &current_sprite);
wait(2000);
say_stop("`3 I will give it to you, in return for 20 gold pieces.", &current_sprite);
&gold -= 20;
say("Hey! You didn't give me any magic!", 1);
&gimme = 1;
unfreeze(1);
unfreeze(&current_sprite);
}
}

void talk( void);
{
if( &gimme == 1)
{
say_stop("`3 All right. Here you go", &current_sprite);
add_magic("item-fb", 437, 1);
&gimme = 2
}
if(&gimme == 2)
{ 
say("`3 Get lost!", &current_sprite);
}
}

]