Page 1 of 1

Ship Replacements

Posted: Tue Jun 02, 2009 6:06 am
by paw1776
I was thinking of basing replacements of ships based on how many harbors the players own.

Would I be able to evaluate how many Harbors are say 5+ on the map owned by one side.

Not looking for exact code, but more of a hint on what to use.

I was thinking of using EvalRgnStuc, but not sure if I can do that for the whole map, or just regions.

Posted: Tue Jun 02, 2009 9:18 am
by Pocus
You would have to run one such event per region tested. There is no command that get you the count of a particular structure on map, for now.

For each event triggered (you could test 30 harbors locations for example), the best way would be to raise the cuOccurs parameter of an event (which is never triggered by itself, it serves only as a variable). If the parameter reach 5, then another event triggers.
That's only a work-around, we would need variables that you can manipulate directly, but it is not done either.