The Dink Network

Reply to Please help I am so stuck

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 20th 2004, 06:51 AM
milder.gif
I am using this one. But I can not push the rock when I am level 10. When I am not level 10 but a lower level. When I push it It says I am not strong enough. But when I am level 10. I can not push the rock.

I have been busy with this script all weekend. And I made so many combinations. But I can not make the script work. Please help?

//Remember where it was pushed

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 (&level >= 10)
{
unfreeze(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! I am not strong enough yet.", 1);
}