: Ok. This is the script i'm trying to run at the beginning. It's inserted in Start1.c, and i can get the first part to run just fine, but it stops working after it says "dink has just been convicted of a murder he didnt commit." after it says that, you're free to control dink, but there is no interface-- like the status bars and stuff isnt there.
: freeze(1);
: sp_dir(1,8);
: say_stop_xy("'!Dink has been convicted of a murder he didnt commit.", 10, 370);
: say_stop_xy("'!He has undergone an unfair trial and seeks to obtain justice.", 10, 370);
: move_stop(1, 8, 200, 1);
: say_stop("I will find whoever framed me...", 1);
: wait(1000);
: say_stop("No matter who they are or where they are...", 1);
: wait(1000);
: say_stop(" And bring them to justice! Not to mention clearing the good name of Smallwood.", 1);
: wait(1000);
: say_stop("You probably want to know the whole story, don't you?", 1);
: int &fred = create_sprite(370, 400, 16, 20, 1);
: freeze(&fred);
: sp_dir(&fred, 8);
: sp_base_walk(&fred, 20);
: sp_speed(&fred, 1);
: sp_size(&fred, 200);
: move_stop(&fred, 8, 300, 1);
: say_stop("Uh Oh! I better get out of here... while I run, you can see what happened.", 1);
: wait(200);
: say_stop("'4Murderer! The King's Duck Forces shall have you!", &fred);
: wait(200);
: say_stop("Never!", 1);
: say_stop("I'm getting out of here...", 1);
: move(1, 8, -1, 1);
: move(&fred, 8, 0, 1);
: this isn't the script i'm going to be using, i'm just figuring it out by using a modified "DMOD movie example" script. Any help?
Make sure that the sprite is Type 1 (I think). If you have it setup as a background sprite, any scripts attached to it won't run at all.
I assume you put all those script in
void click ( void )
{
......
}
at Start-1.c (Note the dash -).
It appears that you didn't freeze Dink with the script. You might try to put a wait(1); in front of freeze(1), and also put a wait(1); between your two say_stop_xy(....).
In order to bring up the status bar, you need to put the following lines to the scripts:
&update_status = 1;
draw_status();
unfreeze(1);
And don't forget to arm Dink with a fist or a sword or some weapon.
add_item("item-fst",438, 1);
&cur_weapon = 1;
arm_weapon();
: Ok. This is the script i'm trying to run at the beginning. It's inserted in Start1.c, and i can get the first part to run just fine, but it stops working after it says "dink has just been convicted of a murder he didnt commit." after it says that, you're free to control dink, but there is no interface-- like the status bars and stuff isnt there.
: freeze(1);
: sp_dir(1,8);
: say_stop_xy("'!Dink has been convicted of a murder he didnt commit.", 10, 370);
: say_stop_xy("'!He has undergone an unfair trial and seeks to obtain justice.", 10, 370);
: move_stop(1, 8, 200, 1);
: say_stop("I will find whoever framed me...", 1);
: wait(1000);
: say_stop("No matter who they are or where they are...", 1);
: wait(1000);
: say_stop(" And bring them to justice! Not to mention clearing the good name of Smallwood.", 1);
: wait(1000);
: say_stop("You probably want to know the whole story, don't you?", 1);
: int &fred = create_sprite(370, 400, 16, 20, 1);
: freeze(&fred);
: sp_dir(&fred, 8);
: sp_base_walk(&fred, 20);
: sp_speed(&fred, 1);
: sp_size(&fred, 200);
: move_stop(&fred, 8, 300, 1);
: say_stop("Uh Oh! I better get out of here... while I run, you can see what happened.", 1);
: wait(200);
: say_stop("'4Murderer! The King's Duck Forces shall have you!", &fred);
: wait(200);
: say_stop("Never!", 1);
: say_stop("I'm getting out of here...", 1);
: move(1, 8, -1, 1);
: move(&fred, 8, 0, 1);
: this isn't the script i'm going to be using, i'm just figuring it out by using a modified "DMOD movie example" script. Any help?