Trigger:
- ChildGrow
- Events
- Unit - A unit Dies
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Dying unit)) Equal to Female Child
- Then - Actions
- Unit - Remove (Dying unit) from the game
- Unit - Create 1 Villager (Female) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Dying unit)) Equal to Male Child
- Then - Actions
- Unit - Remove (Dying unit) from the game
- Unit - Create 1 Villager (Male) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
The obvious problem with this is that it will be triggered by the child dying via any method. Children have an expiration timer, and I need to have it so that this will only be triggered if the child's cause of death was by that timer.