Files
dsrc/sku.0/sys.server/compiled/game/script/structure/municipal/cantina.script
T

50 lines
1.5 KiB
Plaintext

/**********************************************************************
* Title: hospital_heal
* Description: allows the slow healing of wounds and shock for all within
* the building.
**********************************************************************/
/***** FUNCTIONS *******************************************************/
// This script is empty so that it can be attached to structures for gold master
// and later augmented to add functionality.
include library.create;
include library.ai_lib;
trigger OnInitialize ()
{
location behindBar = getLocation (self);
string planet = behindBar.area;
obj_id cantina = getCellId(self, "cantina");
if (cantina == null)
{
return SCRIPT_OVERRIDE;
}
behindBar = new location (8.54f, -0.89f, 0.14f, planet, cantina);
obj_id bartender = create.object ("bartender", behindBar);
setYaw (bartender, 87);
setCreatureStatic (bartender, true);
setInvulnerable(bartender, true);
ai_lib.setDefaultCalmBehavior( self, ai_lib.BEHAVIOR_SENTINEL );
// The cantina in Nym's Stronghold has this script attached to it
// We do not want to attach the Imperial Crackdown script to the cantina in Nym's Stronghold
if(hasScript(self, "theme_park.lok.cantina")) {
if(hasScript(self, "city.imperial_crackdown.crackdown_cantina")) {
detachScript(self, "city.imperial_crackdown.crackdown_cantina");
}
return SCRIPT_CONTINUE;
}
attachScript (self, "city.imperial_crackdown.crackdown_cantina");
return SCRIPT_CONTINUE;
}