68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
void main()
|
|
{
|
|
|
|
object oModule = GetModule();
|
|
object oClicker = GetClickingObject();
|
|
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
|
location lLoc = GetLocation(GetObjectByTag("Thentil_Level_Five"));
|
|
location lLoc2 = GetLocation(GetObjectByTag("Stay_Thentil_Four"));
|
|
location lLoc3 = GetLocation(GetObjectByTag("Outside_Thentil"));
|
|
location lLoc4 = GetLocation(GetObjectByTag("Stay_Thentil_Four"));
|
|
|
|
if((GetLocalInt(GetModule(), "ThentilFour") == 10))
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc));
|
|
}
|
|
else if((GetLocalInt(GetModule(), "ThentilFour") == 20))
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc2));
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(FALSE, FALSE), oClicker, 0.0f);
|
|
|
|
}
|
|
else if((GetLocalInt(GetModule(), "ThentilFour") == 30))
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc3));
|
|
}
|
|
else if((GetLocalInt(GetModule(), "ThentilFour") == 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(), "ThentilFour") == 50))
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc2));
|
|
}
|
|
else
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc2));
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|