- Joined
- Mar 21, 2007
- Messages
- 155
hi, i'm making a map with many small+big bases which can be taken over by opposing players by thier special leaders. each base has 2 unit trainers, 1 tec centre (just a town hall but renamed), 1 big building saying the name of the base, and a special unit trainer.
i have mad a trigger so that when the opposing leader walks into the region, the 2 unit trainers are REPLACED by diffrent ones, the tec centre canges owner, the building changes owner and the special unit trainer changes owner
this is the trigger, i cna test it once but i can't test it again and again to make sure that it will work, do you think it will work??
with ozai being the name of the base.
p.s sorry for making it so complicated but i have tried to describe it as much as possible
i have mad a trigger so that when the opposing leader walks into the region, the 2 unit trainers are REPLACED by diffrent ones, the tec centre canges owner, the building changes owner and the special unit trainer changes owner
this is the trigger, i cna test it once but i can't test it again and again to make sure that it will work, do you think it will work??
-
takeover ozai
-
Events
- Unit - A unit enters hostile takeover ozai <gen>
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Fire Lord
- (Unit-type of (Triggering unit)) Equal to King of Ba Sing Se
- (Unit-type of (Triggering unit)) Equal to King of Omashu
- (Unit-type of (Triggering unit)) Equal to Monk Geyatzu
- (Unit-type of (Triggering unit)) Equal to Water Chief
-
Conditions
- (Owner of (Triggering unit)) Not equal to (Owner of Fire Nation 0045 <gen>)
-
Or - Any (Conditions) are true
-
Actions
- Set takingover = (Owner of (Triggering unit))
- Game - Display to (All players) the text: The Fire Nation has...
- Unit - Change ownership of Ozai 0040 <gen> to takingover and Change color
- Unit - Change ownership of Tech 1 0039 <gen> to takingover and Change color
- Unit - Change ownership of Fire Nation Unit Trainer 0036 <gen> to takingover and Change color
- Unit - Change ownership of Fire Nation Unit Trainer 0041 <gen> to takingover and Change color
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Water Chief
-
Then - Actions
- Unit - Replace Fire Nation Unit Trainer 0041 <gen> with a Water Tribe Unit Trainer using The new unit's max life and mana
- Unit - Replace Fire Nation Unit Trainer 0036 <gen> with a Water Tribe Unit Trainer using The new unit's max life and mana
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to King of Ba Sing Se
-
Then - Actions
- Unit - Replace Fire Nation Unit Trainer 0041 <gen> with a Earth Kingdom Unit Trainer using The new unit's max life and mana
- Unit - Replace Fire Nation Unit Trainer 0036 <gen> with a Earth Kingdom Unit Trainer using The new unit's max life and mana
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to King of Omashu
-
Then - Actions
- Unit - Replace Fire Nation Unit Trainer 0041 <gen> with a Earth Kingdom Unit Trainer using The new unit's max life and mana
- Unit - Replace Fire Nation Unit Trainer 0036 <gen> with a Earth Kingdom Unit Trainer using The new unit's max life and mana
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Monk Geyatzu
-
Then - Actions
- Unit - Replace Fire Nation Unit Trainer 0041 <gen> with a Air Nomad Unit Trainer using The new unit's max life and mana
- Unit - Replace Fire Nation Unit Trainer 0036 <gen> with a Air Nomad Unit Trainer using The new unit's max life and mana
- Else - Actions
-
If - Conditions
- Unit - Change ownership of Hostile Takeover (medium) 0021 <gen> to takingover and Change color
- Unit - Change ownership of Re-Crown (medium) 0022 <gen> to takingover and Change color
- Unit - Change ownership of Fire Nation 0045 <gen> to takingover and Change color
- Unit - Change ownership of Gate Commander 0111 <gen> to takingover and Change color
-
Events
with ozai being the name of the base.
p.s sorry for making it so complicated but i have tried to describe it as much as possible
Last edited by a moderator: