The Dink Network

Warping  as a choice

December 2nd 2002, 05:44 PM
farmer.gif
314159
Peasant They/Them
 
I have been wondering if it is possible say, to talk to someone and have them warp you somewhere as a choice. Any ideas?
December 2nd 2002, 05:56 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
: I have been wondering if it is possible say, to talk to someone and have them warp you somewhere as a choice. Any ideas?

Yes, you can do that.

An example would be the teleporters that take you between the Edge of the World and the Darklands in the original Dink Smallwood. See the source file called "S6-warp.c" for the script. The only really important part is:

//----------------------------

script_attach(1000);

fade_down();

&player_map = 154;

sp_> 1, 329);

sp_y(1, 279);

load_screen(154);

draw_screen();

freeze(1);

fade_up();

wait(1000);

unfreeze(1);

//----------------------------

You can also let the player choose from multiple destinations by using the choice and if(&result=?) system used in "s6-warp.c".
December 2nd 2002, 08:21 PM
wizardg.gif
Paul
Peasant He/Him United States
 
: : I have been wondering if it is possible say, to talk to someone and have them warp you somewhere as a choice. Any ideas?

: Yes, you can do that.

: An example would be the teleporters that take you between the Edge of the World and the Darklands in the original Dink Smallwood.  See the source file called "S6-warp.c" for the script.  The only really important part is:

: //----------------------------

: script_attach(1000);

:        fade_down();

:        &player_map = 154;

:        sp_> 1, 329);

:        sp_y(1, 279);

:        load_screen(154);

:        draw_screen();

: freeze(1);

:        fade_up();

: wait(1000);

: unfreeze(1);

: //----------------------------

: You can also let the player choose from multiple destinations by using the choice and if(&result=?) system used in "s6-warp.c".

Since you're new, lat me point out that that angry face should be X So the like really reads:

sp_X 1, 329);

Also this is one problem with warping this way, if you warp onto a screen with monsters and kill them, they never come back. So avoid it if you can.