The Dink Network

Reply to Re: "Shadows of Death" script help thread

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 20th 2013, 07:26 PM
knights.gif
DinkKiller
Peasant He/Him United States
The world could always use more heroes 
So, since I was bored today, I started taking a look at my D-mod for the first time in over a month. So, I tried messing with some warp scripts I had tried implementing back then, and I actually just managed to get the warps to work. However, Dink is unable to change screens normally now, he just stops at the edge of the screen as if there is hardness, or no screen at all, which isn't the case. He can still go over the warps and change between the 4 different screens, but that's all. Why isn't Dink changing screens normally anymore, and how the heck do I fix it?

Here is an example of one of the warp scripts, for reference. (The warp is a long invisible object on the edge of the screen that triggers when Dink walks over it.)
//Warp Script, for mind-bending fun!

void main(void)
{
  int &rtemp = &real_player_map;
  &rtemp = 370;
  sp_nohit(&current_sprite, 1);
  sp_nodraw(&current_sprite,1);
  sp_brain(&current_sprite,14);
}
  
void buttonon(void)
{
  &player_map = &rtemp;
}

void buttonoff(void)
{
  &player_map = &real_player_map;
}


The scripts are taken from Cast Awakening Part 1: Initiation, and slightly modified. Which is probably why they don't fully work.