- Joined
- Oct 6, 2006
- Messages
- 293
Need help turning this trigger into a trigger that supports 8players. Guessing i have to use an integer array and stuff but still learning so any help is gladly accepted.
What it does it that when you enter a region and npc spawns for any hero for any player. It has to remember how many units you bought from the npc before so the more units hired the better units that can be hired later. Right now it only works for player reds 1 hero. It might be to difficult but im going to try it.
What it does it that when you enter a region and npc spawns for any hero for any player. It has to remember how many units you bought from the npc before so the more units hired the better units that can be hired later. Right now it only works for player reds 1 hero. It might be to difficult but im going to try it.
-
enter merc region fornow
-
Events
- Unit - A unit enters Merc Enter <gen>
-
Conditions
- (Unit-type of (Entering unit)) Equal to Bloodelf Wizard
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 0
- Integer Less than or equal to 5
-
Then - Actions
- Unit - Create 1 Merhen Tucaray for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 6
- Integer Less than or equal to 10
-
Then - Actions
- Unit - Create 1 Merhen Tucaray lvl 2 for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 11
- Integer Less than or equal to 15
-
Then - Actions
- Unit - Create 1 Merhen Tucaray lvl 3 for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 16
- Integer Less than or equal to 20
-
Then - Actions
- Unit - Create 1 Merhen Tucaray lvl 4 for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 21
- Integer Less than or equal to 25
-
Then - Actions
- Unit - Create 1 Merhen Tucaray lvl 4 for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 26
- Integer Less than or equal to 30
-
Then - Actions
- Unit - Create 1 Merhen Tucaray lvl 5 for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 31
- Integer Less than or equal to 35
-
Then - Actions
- Unit - Create 1 Merhen Tucaray lvl 5 for Player 1 (Red) at (Center of Spawn Merc <gen>) facing Default building facing degrees
- Trigger - Turn on Remove Merc new <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Remove Merc new
-
Events
- Unit - A unit enters Spawn Merc <gen>
-
Conditions
- ((((Unit-type of (Entering unit)) Equal to Merhen Tucaray) or ((Unit-type of (Entering unit)) Equal to Merhen Tucaray lvl 3)) or (((Unit-type of (Entering unit)) Equal to Merhen Tucaray Final) or ((Unit-type of (Entering unit)) Equal to Merhen Tucaray lvl 2)) or (((Unit-type of (Entering unit)) Equal to Merhen Tucaray lvl 4) or ((Unit-type of (Entering unit)) Equal to Merhen Tucaray lvl 5))
-
Actions
- Wait 15.00 seconds
- Unit - Remove (Entering unit) from the game
- Trigger - Turn on enter merc region fornow <gen>
- Trigger - Turn off (This trigger)
-
Events
-
Create leaderboard
-
Events
- Unit - A unit Sells a unit
-
Conditions
- (((Unit-type of (Selling unit)) Equal to Merhen Tucaray) or (((Unit-type of (Selling unit)) Equal to Merhen Tucaray Final) or ((Unit-type of (Selling unit)) Equal to Merhen Tucaray lvl 2))) or ((((Unit-type of (Selling unit)) Equal to Merhen Tucaray lvl 3) or ((Unit-type of (Selling unit)) Equal to Merhen Tucaray lvl 4)) or ((Unit-type of (Selling unit)) Equal to Merhen Tucaray lvl 5))
-
Actions
- Leaderboard - Create a leaderboard for (All players matching (((Buying unit) is A Hero) Equal to True)) titled Mercenary Score
- Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Points and value 1
- Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Integer
- Set Integer = (Integer + 1)
-
Events