Files
Anphillia_PRC8/_module/nss/eye_portal01.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

40 lines
1.1 KiB
Plaintext

void main()
{
object oStore = GetNearestObjectByTag("ElemPortStore");
int iAir = GetLocalInt(oStore, "air");
int iFire = GetLocalInt(oStore, "fire");
int iWater = GetLocalInt(oStore, "water");
int iEarth = GetLocalInt(oStore, "earth");
object oPlayer = GetLastUsedBy();
if (GetTag(OBJECT_SELF) == "ccportaleast")
{
AssignCommand(oPlayer, ActionJumpToObject(GetObjectByTag("PortalWaypointE")));
}
else if (GetTag(OBJECT_SELF) == "ccportalwest")
{
AssignCommand(oPlayer, ActionJumpToObject(GetObjectByTag("PortalWaypointW")));
}
if (iAir == 1)
{
if (iFire == 1)
{
if (iWater == 1)
{
if (iEarth == 1)
{
if (GetTag(OBJECT_SELF) == "elemporteast")
{
AssignCommand(oPlayer, ActionJumpToObject(GetObjectByTag("CCPortalEast")));
}
else if (GetTag(OBJECT_SELF) == "elemportwest")
{
AssignCommand(oPlayer, ActionJumpToObject(GetObjectByTag("CCPortalWest")));
}
}
}
}
}
}