diff --git a/sku.0/sys.server/compiled/game/script/city/bestine/museum_event_spawner.script b/sku.0/sys.server/compiled/game/script/city/bestine/museum_event_spawner.script index 6fccc9ba7..ee13a953a 100644 --- a/sku.0/sys.server/compiled/game/script/city/bestine/museum_event_spawner.script +++ b/sku.0/sys.server/compiled/game/script/city/bestine/museum_event_spawner.script @@ -13,6 +13,14 @@ trigger OnInitialize() return SCRIPT_CONTINUE; } +trigger OnAttach() +{ + deltadictionary dctScriptVars = self.getScriptVars(); + dctScriptVars.put("numMuseumChecks", 1); + messageTo(self, "checkForMuseumBuilding", null, 60, false); + return SCRIPT_CONTINUE; +} + messageHandler checkForMuseumBuilding() { location here = getLocation(self); @@ -115,4 +123,4 @@ void spawnNpc(obj_id self) attachScript(npc, "conversation.bestine_artist06"); return; -} \ No newline at end of file +}