The Dink Network

Reply to Re: Savebot script

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:
 
 
August 29th 2011, 07:06 AM
duckdie.gif
I've made a barrier that makes dink go back until he beheads the duck and talks to the guy, but while it works when he's supposed to talk to the guy, it doesn't work when he's supposed to behead the duck.
This script is attached to the fence that's gonna be the barrier. &duck is a global variable.
void main(void)
{
sp_touch_damage(&current_sprite, -1);
sp_nodraw(&current_sprite, 1);
}
void touch(void)
{
if(&duck == 0)
{
freeze(1);
move_stop(1, 8, 200, 1);
say("I wanna behead that duck!", 1);
unfreeze(1);
}
if(&duck == 1)
{
freeze(1);
move_stop(1, 8, 200, 1);
say("I should talk to that cranky pirate", 1);
unfreeze(1);
}
}