📧 Message Board Archive

Scripting help wanted
When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?



fade_down();

fill_sreen(0);

&player_map = 130;

sp_x(1, 391);

sp_y(1, 68);

load_screen();

draw_screen();

draw_status();

fade_up();

unfreeze(1);

kill_this_task();



Thanks! :)
Re: Scripting help wanted
: When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: fade_down();

: fill_sreen(0);

: &player_map = 130;

: sp_x(1, 391);

: sp_y(1, 68);

: load_screen();

: draw_screen();

: draw_status();

: fade_up();

: unfreeze(1);

: kill_this_task();

: Thanks! :)



you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

Also, you may want to put &update_status = 1; after draw_status();  not always necessary, but good practice.

Re: Scripting help wanted
: : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : fade_down();

: : fill_sreen(0);

: : &player_map = 130;

: : sp_x(1, 391);

: : sp_y(1, 68);

: : load_screen();

: : draw_screen();

: : draw_status();

: : fade_up();

: : unfreeze(1);

: : kill_this_task();

: : Thanks! :)

: you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.



and use load_screen(130), instead of load_screen();
Re: Scripting help wanted
: : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : fade_down();

: : : fill_sreen(0);

: : : &player_map = 130;

: : : sp_x(1, 391);

: : : sp_y(1, 68);

: : : load_screen();

: : : draw_screen();

: : : draw_status();

: : : fade_up();

: : : unfreeze(1);

: : : kill_this_task();

: : : Thanks! :)

: : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: and use load_screen(130), instead of load_screen();



That's ABSOLUTELY not necessary, as the numbers between the parantheses are ignored. ;)
Re: Scripting help wanted
: : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : : fade_down();

: : : : fill_sreen(0);

: : : : &player_map = 130;

: : : : sp_x(1, 391);

: : : : sp_y(1, 68);

: : : : load_screen();

: : : : draw_screen();

: : : : draw_status();

: : : : fade_up();

: : : : unfreeze(1);

: : : : kill_this_task();

: : : : Thanks! :)

: : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : and use load_screen(130), instead of load_screen();

: That's ABSOLUTELY not necessary, as the numbers between the parantheses are ignored. ;)

Ehm... lost you there. What line is not necessary?

Re: Scripting help wanted
: : : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : : : fade_down();

: : : : : fill_sreen(0);

: : : : : &player_map = 130;

: : : : : sp_x(1, 391);

: : : : : sp_y(1, 68);

: : : : : load_screen();

: : : : : draw_screen();

: : : : : draw_status();

: : : : : fade_up();

: : : : : unfreeze(1);

: : : : : kill_this_task();

: : : : : Thanks! :)

: : : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : : and use load_screen(130), instead of load_screen();

: : That's ABSOLUTELY not necessary, as the numbers between the parantheses are ignored. ;)

: Ehm... lost you there. What line is not necessary?



Like I said, having numbers between the parentheses on the "load_screen();" (Which else had parentheses?) command is totally useless, cause they are ignored. The only thing that matters is the &player_map = 130; line.
Re: Scripting help wanted
: : : : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : : : : fade_down();

: : : : : : fill_sreen(0);

: : : : : : &player_map = 130;

: : : : : : sp_x(1, 391);

: : : : : : sp_y(1, 68);

: : : : : : load_screen();

: : : : : : draw_screen();

: : : : : : draw_status();

: : : : : : fade_up();

: : : : : : unfreeze(1);

: : : : : : kill_this_task();

: : : : : : Thanks! :)

: : : : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : : : and use load_screen(130), instead of load_screen();

: : : That's ABSOLUTELY not necessary, as the numbers between the parantheses are ignored. ;)

: : Ehm... lost you there. What line is not necessary?

: Like I said, having numbers between the parentheses on the "load_screen();" (Which else had parentheses?) command is totally useless, cause they are ignored. The only thing that matters is the &player_map = 130; line.



Ofcourse. That was stupid of me. My brain must have been in some overloadsession or something.

Thanks for explaining again! :) :)
Re: Scripting help wanted
: : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.



What is &update_status used for? Can't find it in the DinkCed...
oops... this one is for kindanue!
: : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: What is &update_status used for? Can't find it in the DinkCed...

Re: oops... this one is for kindanue!
: : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : What is &update_status used for? Can't find it in the DinkCed...



if your stats change, use it, if you dont, the status bar will be the same as before... bad... if you do that, it will check &strength &defense &gold &magic &life &lifemax etc..
Re: oops... this one is for kindanue!
: : : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : : What is &update_status used for? Can't find it in the DinkCed...

: if your stats change, use it, if you dont, the status bar will be the same as before... bad... if you do that, it will check &strength &defense &gold &magic &life &lifemax etc..



Got it!

Thank you! :)

Re: Scripting help wanted
: : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : fade_down();

: : : fill_sreen(0);

: : : &player_map = 130;

: : : sp_x(1, 391);

: : : sp_y(1, 68);

: : : load_screen();

: : : draw_screen();

: : : draw_status();

: : : fade_up();

: : : unfreeze(1);

: : : kill_this_task();

: : : Thanks! :)

: : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: and use load_screen(130), instead of load_screen();



Use "fill_screen(0)", instead of "fill_sreen(0)". :p

I don't think you need to do what theprophet said. i also think you should put the &update_status thing before draw_status()
Re: Scripting help wanted
: : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : : fade_down();

: : : : fill_sreen(0);

: : : : &player_map = 130;

: : : : sp_x(1, 391);

: : : : sp_y(1, 68);

: : : : load_screen();

: : : : draw_screen();

: : : : draw_status();

: : : : fade_up();

: : : : unfreeze(1);

: : : : kill_this_task();

: : : : Thanks! :)

: : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : and use load_screen(130), instead of load_screen();

: Use "fill_screen(0)", instead of "fill_sreen(0)". :p

: I don't think you need to do what theprophet said. i also think you should put the &update_status thing before draw_status()



If you use Easy DinkC's code color feature, you'll easialy find typing-errors like that. :p
Re: Scripting help wanted
: : : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?

: : : : : fade_down();

: : : : : fill_sreen(0);

: : : : : &player_map = 130;

: : : : : sp_x(1, 391);

: : : : : sp_y(1, 68);

: : : : : load_screen();

: : : : : draw_screen();

: : : : : draw_status();

: : : : : fade_up();

: : : : : unfreeze(1);

: : : : : kill_this_task();

: : : : : Thanks! :)

: : : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.

: : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.

: : : and use load_screen(130), instead of load_screen();

: : Use "fill_screen(0)", instead of "fill_sreen(0)". :p

: : I don't think you need to do what theprophet said. i also think you should put the &update_status thing before draw_status()

: If you use Easy DinkC's code color feature, you'll easialy find typing-errors like that. :p



I'll give that a try. Thanks. :)

Re: Scripting help wanted
: : and use load_screen(130), instead of load_screen();

: Use "fill_screen(0)", instead of "fill_sreen(0)". :p

: I don't think you need to do what theprophet said. i also think you should put the &update_status thing before draw_status()



ah... caught me on a typing error, ehasl! keep up the good policework! ;)



So, guys, can you figure out between yourselves ;) before giving me good :) but contradictory ;( advise what is right: before or after, and do or do not use load_screen(130)?

Much obliged! :)

Re: Scripting help wanted
: ah... caught me on a typing error, ehasl! keep up the good policework! ;)

: So, guys, can you figure out between yourselves ;) before giving me good :) but contradictory ;( advise what is right: before or after, and do or do not use load_screen(130)?

: Much obliged! :)



You don't need to use load_screen(130); if you've got &player_map = 130; before it in the script. If you've set the &player_map variable to the screen you want Dink to warp to, you don't have to set it again for load_screen();, because that one will use the screen you've set with &player_map = 130; then.



Simeon
Everybody who helped a great thanks! <sup>[NT]</sup>
[No message content]