Jump to content

Bottomless Pits & Lava

Overview
Creator: Mero Added: 26 Apr 2014 Tags: FFC, Global
Rating[?]: Rating: 3.25/5 (3 ratings)
View Script
Information

Setup Reviews Comments

Shadowblitz16  

Posted 21 September 2016 - 10:23 PM
how do I make the flag type show up in the combo editor under flags?
 

Shadowblitz16  

Posted 21 September 2016 - 10:23 PM
how do I make the flag type show up in the combo editor under flags?
 

Mero  

Edited 05 January 2015 - 09:21 AM
Because you shouldn't use global variables unless you absolutely have to.
Also, this script is getting a rewrite since it won't work with ghost.zh. Have a nice day folks!
  • Demonlink likes this
 

justin  

Posted 05 January 2015 - 12:03 AM
small bug. when Link falls in pit, he respawns and is flashing to show hurt. when Link scrolls screen, and gets hurt, the pit warp gets triggered, he respawns on the old screen but doesn't flash hurt. the pitwarp cancels out the LA_GOTHURTLAND, and the HitDir = -1. A quick fix is to add a waitframe or waitnoaction to the different dmap/scr if statement, and move the hurt stuff to after the if statement.

E.g.
Game->PlaySound(SFX_OUCH);
if(Game->GetCurDMap()!=dmap || Game->GetCurDMapScreen()!=scr){
   Link->PitWarp(dmap, scr);
  WaitNoAction();
}
Link->Action = LA_GOTHURTLAND;
Link->HitDir = -1;

Also, is there a specific reason why the variables that store Link's position are declared inside the Global run, as opposed to as global variables? Only reason I ask is that I wrote a script that functions the same way (thus uses the same variables) with drowning in water and jumping. It doesn't conflict at all with your Hole script, in fact, I wrote mine to work with yours.
 

Mero  

Posted 08 May 2014 - 08:39 AM
Ah yes, you need the header 'ffcscript.zh' for it to work.
 

View all comments (6)