From d7c2401de6b880cc4527260ea2c867ca6feaa550 Mon Sep 17 00:00:00 2001 From: Redacted by Stellabellum INC Date: Tue, 11 Nov 2014 01:53:34 -0800 Subject: [PATCH] *Added OnAttach trigger to keep system working in buildout tables --- .../city/bestine/politician_event_spawner.script | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_spawner.script b/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_spawner.script index 99984d29b..103487c78 100644 --- a/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_spawner.script +++ b/sku.0/sys.server/compiled/game/script/city/bestine/politician_event_spawner.script @@ -11,6 +11,14 @@ trigger OnInitialize() return SCRIPT_CONTINUE; } +trigger OnAttach() +{ + deltadictionary dctScriptVars = self.getScriptVars(); + dctScriptVars.put("numCapitolChecks", 1); + messageTo(self, "checkForCapitolBuilding", null, 60, false); + return SCRIPT_CONTINUE; +} + messageHandler checkForCapitolBuilding() { location here = getLocation(self); @@ -120,4 +128,4 @@ void spawnNpc(obj_id self) } } return; -} \ No newline at end of file +}