mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-12 23:45:12 -04:00
*Attached necessary scripts and variables to NPC
This commit is contained in:
@@ -1,11 +1,26 @@
|
||||
include library.ai_lib;
|
||||
include library.hue;
|
||||
include library.colors;
|
||||
include library.factions;
|
||||
include library.chat;
|
||||
include library.skill;
|
||||
|
||||
trigger OnAttach ()
|
||||
{
|
||||
|
||||
ai_lib.setDefaultCalmBehavior( self, ai_lib.BEHAVIOR_SENTINEL );
|
||||
if (!hasScript (self, "npc.converse.npc_converse_menu"))
|
||||
{
|
||||
attachScript (self, "npc.converse.npc_converse_menu");
|
||||
}
|
||||
|
||||
if (!hasScript (self, "npc.static_quest.quest_convo"))
|
||||
{
|
||||
attachScript (self, "npc.static_quest.quest_convo");
|
||||
}
|
||||
|
||||
setObjVar (self, "quest_table", "wilhalm_skrim");
|
||||
factions.setFaction (self, "Imperial");
|
||||
setName (self, "Wilhalm Skrim");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user