Initial Commit
Initial Commit
This commit is contained in:
28
_module/nss/thug_perception.nss
Normal file
28
_module/nss/thug_perception.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name x2_def_percept
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Default On Perception script
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Keith Warner
|
||||
//:: Created On: June 11/03
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPerceived = GetLastPerceived();
|
||||
if (GetLocalInt(OBJECT_SELF, "EscortBandit") == FALSE && GetLocalInt(GetArea(OBJECT_SELF), "ThugNoticed") == FALSE && GetIsPC(oPerceived) == TRUE && GetLocalInt(GetArea(OBJECT_SELF), "MerchantTrouble") == FALSE)
|
||||
{
|
||||
SetPlotFlag(OBJECT_SELF, TRUE);
|
||||
SetLocalInt(OBJECT_SELF, "NeedToTalk", TRUE);
|
||||
AssignCommand(OBJECT_SELF, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(EffectCutsceneImmobilize()), oPerceived, 60.0));
|
||||
ActionStartConversation(oPerceived, "", FALSE, FALSE);
|
||||
SetLocalInt(GetArea(OBJECT_SELF), "ThugNoticed", TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if(GetLocalInt(OBJECT_SELF, "X4_VANILLA_AI") == TRUE) ExecuteScript("nw_c2_default2_c", OBJECT_SELF);
|
||||
else ExecuteScript("nw_c2_default2", OBJECT_SELF);
|
||||
}
|
||||
Reference in New Issue
Block a user