- Joined
- Apr 8, 2007
- Messages
- 116
(SOLVED)
Hey all,
so my trigger is supposed to cause players to be unable to build a city within 700 distance units from any pre-existing cities.
So far, I have it as:
Event:
Unit begins construction
Action:
If [All conditions are true] Then do [then actions] else do [else actions]
If Conditions:
-unit-type of constructing city = city
-number of units in [units within 700.00 of [position of constructing unit] matching [unit type of matching unit Equal to City] Greater than or Equal to 1
Then:
Unit - remove constructing unit
Player - add 400 gold to owner of constructing unit
Game - display text to owner of constructing unit [Error cities must be built within blah blah]
Else: Do nothing
However, the problem is that the "error" trigger pops up no matter where the city is targeted, even if the nearest one is all the way across the 256 x 256 map.
I have another building-conditions for houses, which is the fact that they must be built within 600 range of cities, similarly formatted - but it functions perfectly fine...
Anyways, thanks in Advance
Hey all,
so my trigger is supposed to cause players to be unable to build a city within 700 distance units from any pre-existing cities.
So far, I have it as:
Event:
Unit begins construction
Action:
If [All conditions are true] Then do [then actions] else do [else actions]
If Conditions:
-unit-type of constructing city = city
-number of units in [units within 700.00 of [position of constructing unit] matching [unit type of matching unit Equal to City] Greater than or Equal to 1
Then:
Unit - remove constructing unit
Player - add 400 gold to owner of constructing unit
Game - display text to owner of constructing unit [Error cities must be built within blah blah]
Else: Do nothing
However, the problem is that the "error" trigger pops up no matter where the city is targeted, even if the nearest one is all the way across the 256 x 256 map.
I have another building-conditions for houses, which is the fact that they must be built within 600 range of cities, similarly formatted - but it functions perfectly fine...
Anyways, thanks in Advance
Last edited: