- Joined
- Jan 8, 2011
- Messages
- 70
Hi everyone, i just need some help fixing a trigger for random selection of heroes in my tavern. Currently, 1 hero is being spawned 4/5 times and i would like some help fixing it (i have an idea of what is wrong but don't want to make it worse). The tavern sells 5 heroes, and the first hero is the one the random hero button always chooses. Please help!
-
Random
-
Events
- Unit - A unit Sells a unit
-
Conditions
- (Unit-type of (Sold unit)) Equal to Random
-
Actions
- Unit - Remove (Sold unit) from the game
-
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 False
-
Then - Actions
- Unit - Create 1 MonsterTavernHeroes[(Random integer number between 1 and 5)] for (Owner of (Sold unit)) at (Center of Region 006 <gen>) facing Default building facing degrees
- Set HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] = True
- Camera - Pan camera for (Owner of (Sold unit)) to (Center of Region 006 <gen>) over 1.00 seconds
-
Else - Actions
- Game - Display to (All players) the text: You have already pi...
-
If - Conditions
-
Events