- Joined
- May 25, 2004
- Messages
- 1,192
I been having issues replacing the Peasants at the start of the game.
(See attached map below)
The objective is to remove the ability to "Build Buildings like humans". I found out that option is only changed by changing the race in the object manager.
So changing the Worker to "Commoner" race allows me to achieve this option. (Orc race also does this along with many others, I just chose commoner as preference)
I tried a simple "Chaos" Ability so I didn't have to use triggers, but I had a problem.
I decided that triggers were needed since the "Build Buildings like humans" problem came up AGAIN! Problem is the trigger is not done correctly, because it is not replacing the units.
PS - I hate being a newb at triggers!
EDIT: I do know that just changing "Peasant" to race "Commoner" fixes the issue now, but I also would like to have a working trigger for future projects I might need.
(See attached map below)
The objective is to remove the ability to "Build Buildings like humans". I found out that option is only changed by changing the race in the object manager.
So changing the Worker to "Commoner" race allows me to achieve this option. (Orc race also does this along with many others, I just chose commoner as preference)
I tried a simple "Chaos" Ability so I didn't have to use triggers, but I had a problem.
I decided that triggers were needed since the "Build Buildings like humans" problem came up AGAIN! Problem is the trigger is not done correctly, because it is not replacing the units.
-
Peasant Upgrade
-
Events
- Map initialization
-
Conditions
- (Unit-type of (Matching unit)) Equal to Peasant
-
Actions
- Unit - Replace (Matching unit) with a Worker (Commoner) using The old unit's relative life and mana
-
Events
PS - I hate being a newb at triggers!
EDIT: I do know that just changing "Peasant" to race "Commoner" fixes the issue now, but I also would like to have a working trigger for future projects I might need.