I create event from 00_on_actions.txt (../common/on_actions/). This section:
This is my event:
Quiestion:
If i build "building_lillgrinn_command_center" on the empty tile - all is OK.
if i demolish other buildig and after build on this tile "building_lillgrinn_command_center" - it's event don't working. I thinking trigger returned False. Tile info was not cleared? Why?
Code:
#A building construction has been completed.
# This = Planet
# From = Tile
on_building_complete = {
events = {
# lillgrinn.1 - is my new event
lillgrinn.1
tutorial.14
tutorial.140
}
}
This is my event:
Code:
############################
#
# Lillgrinn Events
#
############################
namespace = lillgrinn
planet_event = {
id = lillgrinn.1
title = lillgrinn.1.name
desc = lillgrinn.1.desc
picture = GFX_evt_throne_room
is_triggered_only = yes
trigger = {
has_owner = yes
owner = { is_ai = no }
any_tile = { has_building = "building_lillgrinn_command_center" }
}
immediate = {
every_tile = {
limit = { has_building = "building_lillgrinn_command_center" }
remove_building = yes
set_blocker = "tb_failing_infrastructure"
}
}
# Show Hello Message
option = {
name = lillgrinn.1.z
}
# Exit Option
option = {
name = lillgrinn.1.z
ai_chance = { factor = 1 }
}
}
Quiestion:
If i build "building_lillgrinn_command_center" on the empty tile - all is OK.
if i demolish other buildig and after build on this tile "building_lillgrinn_command_center" - it's event don't working. I thinking trigger returned False. Tile info was not cleared? Why?