29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: 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);
|
|
}
|