The Dink Network

Reply to Re: Warping  as a choice

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
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.