Initial upload
Initial upload
This commit is contained in:
32
_module/nss/godgetskeytrigg.nss
Normal file
32
_module/nss/godgetskeytrigg.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
//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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user