Reply to Push Rock
If you don't have an account, just leave the password field blank.
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(¤t_sprite,-1);
int &hold = sp_editor_num(¤t_sprite);
&newy = editor_seq(&hold,-1);
if (&newy)
{
sp_y(¤t_sprite,&newy);
draw_hard_map();
}
sp_speed(¤t_sprite,2);
}
void push(void)
{
&dinkd = sp_dir(1,-1);
&newy = sp_y(¤t_sprite,-1);
if (&newy != &myy) goto nopush;
if (&dinkd == 8)
{
freeze(1);
&newy -= 50;
move_stop(¤t_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.
//Push North
void main(void)
{
int &dinkd;
int &newy;
int &myy = sp_y(¤t_sprite,-1);
int &hold = sp_editor_num(¤t_sprite);
&newy = editor_seq(&hold,-1);
if (&newy)
{
sp_y(¤t_sprite,&newy);
draw_hard_map();
}
sp_speed(¤t_sprite,2);
}
void push(void)
{
&dinkd = sp_dir(1,-1);
&newy = sp_y(¤t_sprite,-1);
if (&newy != &myy) goto nopush;
if (&dinkd == 8)
{
freeze(1);
&newy -= 50;
move_stop(¤t_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.