- Joined
- Sep 22, 2012
- Messages
- 90
I would like to use the war3's default upkeep alerts (and rename them ) when the food is nearing the food upkeep limits. how to do this via triggers? I have these:
-
respawn
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Equal to Respawn (5 seconds)
-
Actions
- Set res_loc = (Center of trash <gen>)
- Unit - Create 1 db_unit_pool[unit_class[(Player number of (Owner of (Dying unit)))]] for (Owner of (Dying unit)) at res_loc facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of (Dying unit))
- Set unit_main[(Player number of (Owner of (Dying unit)))] = (Last created unit)
- Set unit_has_main[(Player number of (Owner of (Dying unit)))] = True
- Custom script: call RemoveLocation(udg_res_loc)
-
Events