The Dink Network

Reply to Re: Scripting and WDE 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:
 
 
September 1st 2007, 04:47 PM
dinkdead.gif
Grr... Still can't get the blasted thing to work!
What am I doing wrong? This is what I have so far (incorporating Rabid's script):
void main( void )
{
int &xpos;
int &ypos;
int &cur_x;
int &cur_y;
int &isfrozen;
loop:
&isfrozen = sp_freeze(1, -1);

if (&isfrozen == 0)
{
&xpos = sp_x(1, -1);
&ypos = sp_y(1, -1);

wait(7000);

&cur_x = sp_x(1, -1);
&cur_y = sp_y(1, -1);

if (&cur_x == &xpos)
{
if (&cur_y == &ypos)
{
say_stop("It works!", 1);
}
}
}
goto loop;
}

I attach this to a sprite and test it on that screen but nothing happens. I thought that maybe during Dink's idle sequence his depth dot moves around so to test this I changed it all to &current_sprite but it made no difference.