Initial commit
Initial commit [v9.7]
This commit is contained in:
42
_module/nss/ent_sas28.nss
Normal file
42
_module/nss/ent_sas28.nss
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "lprdmlt")== OBJECT_INVALID)
|
||||
return;
|
||||
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
|
||||
//object oPC = GetEnteringObject();
|
||||
object osas28 = GetObjectByTag("sas28");
|
||||
int nHP = GetCurrentHitPoints(osas28);
|
||||
if (!GetIsPC(oPC)) return;
|
||||
//int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||||
if (DoOnce==TRUE) return;
|
||||
if (nHP >= 1)
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||||
AssignCommand(oPC, ClearAllActions(TRUE));
|
||||
SetCutsceneMode(oPC, TRUE);
|
||||
AssignCommand(oPC, ActionMoveToObject(osas28));
|
||||
DelayCommand(3.0, SetCutsceneMode(oPC, FALSE));
|
||||
DelayCommand(3.5, AssignCommand(osas28, ActionStartConversation(oPC, "sas28")));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user