Hello folks, I'm trying to design a event monitor so that certain units or agents can be built simply by being the capital city, for example... diplomats. isn't it kinda abusrd that a faction can't build a diplomat in some situation if it doesn't have a certain building?
So for example, I try to do this in the EDB, putting these lines in all the core_buildings
and then I try to setup an event counter... but I'm failing to see how to do that, there isn't any trigger that precisely defines capital, the only onces I'm seeing that have any relevant connection is FactionNewCapital (which isn't what I need) and CapitalDistance ... which seem to be the closest approixmation , but my test seem to reveal that it only works for charactors... or maybe i'm doing it wrong, this is my script so faragent diplomat 0 requires factions { all, } and event_counter is_capital 1
agent spy 0 requires factions { all, } and event_counter is_capital 1
agent_limit spy 1
agent_limit diplomat 1
Any ideas? I seem to recall some other folks having done something like this, but a search isn't showing much results
monitor_event FactionTurnStart FactionIsLocal
set_event_counter is_capital 1
end_monitor
monitor_event SettlementSelected TrueCondition
and not DistanceCapital >= 1
set_event_counter is_capital 1
end_monitor
monitor_event SettlementSelected TrueCondition
and DistanceCapital >= 1
set_event_counter is_capital 0
end_monitor





Reply With Quote






