Amon_PRC8/_module/nss/thentil1.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

68 lines
1.7 KiB
Plaintext

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