The Dink Network

Reply to Push Rock

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:
 
 
December 17th 2004, 10:09 AM
milder.gif
I am using this script but I want to push this when I am level 10. Which script do I have to use.

//Push North

void main(void)
{
int &dinkd;
int &newy;
int &myy = sp_y(&current_sprite,-1);

int &hold = sp_editor_num(&current_sprite);
&newy = editor_seq(&hold,-1);

if (&newy)
{
sp_y(&current_sprite,&newy);
draw_hard_map();
}

sp_speed(&current_sprite,2);
}

void push(void)
{
&dinkd = sp_dir(1,-1);
&newy = sp_y(&current_sprite,-1);

if (&newy != &myy) goto nopush;

if (&dinkd == 8)
{
freeze(1);
&newy -= 50;
move_stop(&current_sprite,8,&newy,1);
editor_seq(&hold,&newy);
draw_hard_map();
unfreeze(1);
return;
}
nopush:
say("I can't push it this way!", 1);
}

Now I am using this one. But I need a line which I put in. That I only push this rock away when I am level 10.

Which line must I attach in this script.