void main() { object oModule = GetModule(); object oClicker = GetClickingObject(); object oTarget = GetTransitionTarget(OBJECT_SELF); location lLoc = GetLocation(GetObjectByTag("Thentil_Level_Four")); location lLoc2 = GetLocation(GetObjectByTag("Stay_Thentil_Three")); location lLoc3 = GetLocation(GetObjectByTag("Outside_Thentil")); location lLoc4 = GetLocation(GetObjectByTag("Stay_Thentil_Three")); if((GetLocalInt(GetModule(), "ThentilThree") == 10)) { AssignCommand(oClicker,JumpToLocation(lLoc)); } else if((GetLocalInt(GetModule(), "ThentilThree") == 20)) { AssignCommand(oClicker,JumpToLocation(lLoc2)); ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(FALSE, FALSE), oClicker, 0.0f); } else if((GetLocalInt(GetModule(), "ThentilThree") == 30)) { AssignCommand(oClicker,JumpToLocation(lLoc3)); } else if((GetLocalInt(GetModule(), "ThentilThree") == 40)) { int nDiceRoll = d100(1); if(nDiceRoll <= 20) { location lLoc4 = GetLocation(GetObjectByTag("Phased1")); } if(nDiceRoll <= 40) { location lLoc4 = GetLocation(GetObjectByTag("Phased2")); } if(nDiceRoll <= 60) { location lLoc4 = GetLocation(GetObjectByTag("Phased3")); } if(nDiceRoll <= 80) { location lLoc4 = GetLocation(GetObjectByTag("Phased4")); } else { location lLoc4 = GetLocation(GetObjectByTag("Phased5")); } AssignCommand(oClicker,JumpToLocation(lLoc4)); } else if((GetLocalInt(GetModule(), "ThentilThree") == 50)) { AssignCommand(oClicker,JumpToLocation(lLoc2)); } else { AssignCommand(oClicker,JumpToLocation(lLoc2)); } }