Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
22
_module/nss/p2_gateopen.nss
Normal file
22
_module/nss/p2_gateopen.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oNPC;
|
||||
|
||||
oPC = GetLastOpenedBy();
|
||||
|
||||
if (GetIsPC(oPC) && GetLocalInt(oPC,"P2GateOpen") == 0)
|
||||
{
|
||||
oNPC = GetObjectByTag("p2_villager1");
|
||||
AssignCommand(oNPC,SpeakString("We're saved!"));
|
||||
AssignCommand(oNPC,ActionForceFollowObject(oPC));
|
||||
AddHenchman(oPC,oNPC);
|
||||
oNPC = GetObjectByTag("p2_villager2");
|
||||
AssignCommand(oNPC,ActionForceFollowObject(oPC));
|
||||
AddHenchman(oPC,oNPC);
|
||||
oNPC = GetObjectByTag("p2_villager3");
|
||||
AssignCommand(oNPC,ActionForceFollowObject(oPC));
|
||||
AddHenchman(oPC,oNPC);
|
||||
SetLocalInt(oPC,"P2GateOpen",1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user