Hi ,i created this trigger to block one hero if a player pick a specific hero
we see if one player pick paladin, the team cant choose shandow hunter, but if pick shandow hunter first, team cant choose paladin.
the problem is, if player go random hero. will get shandow hunter and paladin togheter. if paladin has been picked, and one player of team decide random, he will get shandow hunter.
Help plz.
-
No2HealersPal
-
Events
- Unit - A unit Sells a unit
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Unit-type of (Sold unit)) Equal to Paladin
-
Or - Any (Conditions) are true
-
Conditions
- (Selling unit) Equal to TavernN1 0000 <gen>
- (Selling unit) Equal to TavernN2 0001 <gen>
- (Selling unit) Equal to TavernN3 0057 <gen>
-
Conditions
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
Player Group - Pick every player in (All allies of Player 6 (Orange)) and do (Actions)
-
Loop - Actions
- Player - Make Shadow Hunter Unavailable for training/construction by (Picked player)
-
Loop - Actions
-
Player Group - Pick every player in (All allies of Player 6 (Orange)) and do (Actions)
-
Events
we see if one player pick paladin, the team cant choose shandow hunter, but if pick shandow hunter first, team cant choose paladin.
the problem is, if player go random hero. will get shandow hunter and paladin togheter. if paladin has been picked, and one player of team decide random, he will get shandow hunter.
Help plz.
-
ManualHeroL
-
Events
- Unit - A unit Sells a unit
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Sold unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
- (Selling unit) Equal to TavernN1 0000 <gen>
- (Selling unit) Equal to TavernN2 0001 <gen>
- (Selling unit) Equal to TavernN3 0057 <gen>
-
Conditions
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] Equal to True
-
Then - Actions
- Unit - Remove (Sold unit) from the game
-
Else - Actions
-
For each (Integer A) from 1 to RandomCount, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Sold unit)) Equal to HeroType[(Integer A)]
-
Then - Actions
- Set HeroType[(Integer A)] = HeroType[RandomCount]
- Set RandomCount = (RandomCount - 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] = True
- Unit - Move (Sold unit) instantly to (Center of StartPointL <gen>)
- Game - Display to (All players) the text: (((Name of (Owner of (Buying unit))) + has chosen ) + (Name of (Sold unit)))
-
Player Group - Pick every player in (All allies of Player 6 (Orange)) and do (Actions)
-
Loop - Actions
- Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
-
Loop - Actions
-
For each (Integer A) from 1 to 24, do (Actions)
-
Loop - Actions
- Player - Make HeroType[(Integer A)] Unavailable for training/construction by (Owner of (Buying unit))
- Camera - Pan camera for (Owner of (Sold unit)) to (Center of StartPointL <gen>) over 1.00 seconds
- Selection - Clear selection for (Owner of (Sold unit))
- Selection - Add (Sold unit) to selection for (Owner of (Sold unit))
-
Loop - Actions
-
For each (Integer A) from 1 to RandomCount, do (Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Tarvern
-
Events
- Map initialization
- Conditions
-
Actions
- Set HeroType[1] = Paladin
- Set HeroType[2] = Archmage
- Set HeroType[3] = Mountain King
- Set HeroType[4] = Blood Mage
- Set HeroType[5] = Blademaster
- Set HeroType[6] = Far Seer
- Set HeroType[7] = Tauren Chieftain
- Set HeroType[8] = Shadow Hunter
- Set HeroType[9] = Death Knight
- Set HeroType[10] = Lich
- Set HeroType[11] = Dreadlord
- Set HeroType[12] = Crypt Lord
- Set HeroType[13] = Keeper of the Grove
- Set HeroType[14] = Priestess of the Moon
- Set HeroType[15] = Demon Hunter
- Set HeroType[16] = Warden
- Set HeroType[17] = Alchemist
- Set HeroType[18] = Naga Sea Witch
- Set HeroType[19] = Tinker
- Set HeroType[20] = Beastmaster
- Set HeroType[21] = Dark Ranger
- Set HeroType[22] = Firelord
- Set HeroType[23] = Pandaren Brewmaster
- Set HeroType[24] = Pit Lord
- Set RandomCount = 24
- Set TotalHero = 24
-
For each (Integer A) from 1 to 24, do (Actions)
-
Loop - Actions
- Set RandomData[(Integer A)] = (Integer A)
-
Loop - Actions
-
For each (Integer B) from 1 to 24, do (Actions)
-
Loop - Actions
- Set RandomData[(Integer B)] = (Integer B)
-
Loop - Actions
- Trigger - Turn off (This trigger)
-
Events
Last edited: