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, 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".