Oh, well in that case.


import "std.zh"



Code:
//============================================================================
// Screen Counting System
// D0 = Dmap
// D1 = Number of Screens You've Drawn (Hexadecimal)   
// D2 = Number of Screens Before Manditory Boss Encounter.
// This script assumes you are using the S_Bomb counter to count screens. Currently, there is no other way to display a variable on the subscreen.
//============================================================================

ffc script random_warp
{
void run (int arg1,int arg2,int arg3)
{
if(Game->Counter[CR_SBOMBS] == arg3){
Game->Counter[CR_SBOMBS]++;
Link->PitWarp(arg1,arg2);
}
else{
Game->Counter[CR_SBOMBS]++;
Link->PitWarp(arg1,Rand(arg2-1));
}
}
}

Should work =)

EDIT: But it doesn't. Hmm, what could I be doing wrong? The regular form works, but uh... hmmm

EDIT2: Nevermind, does work. I just keep forgetting that in Hex you have to subtract one because Zero is included... or something