UW2_PRC8/_module/nss/godgetskeytrigg.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

33 lines
774 B
Plaintext

//Created by Guile 2/20/07
//This trigger is to detect a God Character and give them access to the planes.
//Put this script OnEnter of a tracks trigger
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "planekey")!= OBJECT_INVALID)
return;
if (GetAbilityScore(oPC, ABILITY_CHARISMA, TRUE)< 30)
return;
if (GetAbilityScore(oPC, ABILITY_WISDOM, TRUE)< 30)
return;
if (GetAbilityScore(oPC, ABILITY_INTELLIGENCE, TRUE)< 30)
return;
if (GetAbilityScore(oPC, ABILITY_CONSTITUTION, TRUE)< 30)
return;
CreateItemOnObject("godtoken", oPC);
DelayCommand(2.0, SendMessageToPC(oPC, "You have been granted favor to enter the planes, a secret place only for Gods."));
CreateItemOnObject("godrules2", oPC);
}