generated from Jaysyn/ModuleTemplate
Merged redundant hak files
Merged redundant hak files. Moved hak scripts into module. Updated gitignore. Full Compile. Added release folder & archive.
This commit is contained in:
33
_mod/_module/nss/npcact_wrapca.nss
Normal file
33
_mod/_module/nss/npcact_wrapca.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
/////////////////////////////////////////////////////////////
|
||||
// NPC ACTIVITIES 6.0 - Dynamic Script Wrapper
|
||||
// For the NPC Event:Conversation Abort Exit
|
||||
//-----------------------------------------------------------
|
||||
// By Deva Bryson Winblood - 01/2003
|
||||
// Also used with NPC ACTIVITIES 6.0 with only a script name modification
|
||||
/////////////////////////////////////////////////////////////
|
||||
// If you use this wrapper you should NEVER need to change it
|
||||
// again. If you read the documentation that came with NPC
|
||||
// ACTIVITIES 5.0 it explains how to change this script at any
|
||||
// moment and as many times as you like from within the game
|
||||
// while it is running. This makes this system dynamic rather
|
||||
// than static.
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
string sScriptToUse=GetLocalString(OBJECT_SELF,"sCRSPConvA");
|
||||
string sPost="POST_"+GetTag(OBJECT_SELF);
|
||||
object oPost=GetObjectByTag(sPost);
|
||||
if (GetStringLength(sScriptToUse)>1)
|
||||
{ // has a specified script
|
||||
ExecuteScript(sScriptToUse,OBJECT_SELF);
|
||||
} // has a specified script
|
||||
else if (oPost!=OBJECT_INVALID)
|
||||
{ // run the npc activities scripts
|
||||
ExecuteScript("npcactivities6",OBJECT_SELF);
|
||||
} // run the npc activities scripts
|
||||
else
|
||||
{ // run the Bioware default - non henchman
|
||||
ExecuteScript("nw_walk_wp",OBJECT_SELF);
|
||||
} // run the Bioware default - non henchman
|
||||
}
|
||||
Reference in New Issue
Block a user