Zealot
Member
- Reaction score
- 11
The trigger won't add mana if the unit is loaded into the building that can hold it. It does work since it removes mana. So I believe the Condition is at fault here.
Disregard the addition of lumber.
Trigger:
- Set Villager_Choose = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Villager (Male)))
- Unit Group - Pick every unit in Villager_Choose and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) is being transported) Equal to True
- Then - Actions
- Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + 4.00)
- Player - Add 2 to (Player((Integer A))) Current lumber
- Else - Actions
- Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 0.50)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Custom script: call DestroyGroup (udg_Villager_Choose)
- Unit Group - Pick every unit in Villager_Choose and do (Actions)
Disregard the addition of lumber.