📧 Message Board Archive

I have a scripting question...
but I'm not sure I'm on the right board, this seems to be the whining/arguing board:p. But here it is anyways:

I run this bit of script after my intro cutscene, and it works fine- except that on the screen you go to, everything is black. I'm quite frustrated >(with what I'm positive is some simple mistake. Here's the script (after the intro cutscene):



fade_down();

&player_map = 2;

sp_x(1, 362);

sp_y(1, 303);

load_screen();

draw_screen();

draw_status();

&update_status = 1;

draw_status();

fade_up();



Somebody please help me!!!! I'm hopelessly bad at this "scripting" thing... ;(
Re: I have a scripting question...
: fade_down();

:  &player_map = 2;

:  sp_x(1, 362);

:  sp_y(1, 303);

:  load_screen();

:  draw_screen();

:  draw_status();

: &update_status = 1;

: draw_status();

:  fade_up();

: Somebody please help me!!!! I'm hopelessly bad at this "scripting" thing... ;(



Did you attach the script to sprite 1000 to allow for a map change? script_attach(1000); What is on screen/map 2. You probably don't need the x2 draw_status() - but that is not the problem.
Re: I have a scripting question...
: : fade_down();

: : &player_map = 2;

: : sp_x(1, 362);

: : sp_y(1, 303);

: : load_screen();

: : draw_screen();

: : draw_status();

: : &update_status = 1;

: : draw_status();

: : fade_up();

: : Somebody please help me!!!! I'm hopelessly bad at this "scripting" thing... ;(

: Did you attach the script to sprite 1000 to allow for a map change? script_attach(1000); What is on screen/map 2. You probably don't need the x2 draw_status() - but that is not the problem.



the "x2 draw_status()" was a cut-and-paste error... :) I'm not clever enough to do it myself. But thank you, I'll try it.
Re: I have a scripting question...
: : : fade_down();

: : : &player_map = 2;

: : : sp_x(1, 362);

: : : sp_y(1, 303);

: : : load_screen();

: : : draw_screen();

: : : draw_status();

: : : &update_status = 1;

: : : draw_status();

: : : fade_up();

: : : Somebody please help me!!!! I'm hopelessly bad at this "scripting" thing... ;(

: : Did you attach the script to sprite 1000 to allow for a map change? script_attach(1000); What is on screen/map 2. You probably don't need the x2 draw_status() - but that is not the problem.

: the "x2 draw_status()" was a cut-and-paste error... :) I'm not clever enough to do it myself. But thank you, I'll try it.



Yeah, Simon is correct, you need a script_attach(1000); before you change player_map.  Otherwise, the script is killed and the load_screen, draw_screen, etc are never read.

What!!??!
How can you ask a scripting question at a time like this??? What kind of heartless fool are you??





Just kidding.