- Joined
- Aug 15, 2007
- Messages
- 26
Hello! I'm making a hero tavern on my map with several heroes on it and I want a random icon in my tavern that chooses a random hero. I believe that this would be very similar to the system thing in Footmen Frenzy..
I'm not sure I will need my old triggers, but I'll post them here aswell..
And one more thing, the random system always picks the same hero...
These are my triggers:
I'm not sure I will need my old triggers, but I'll post them here aswell..
And one more thing, the random system always picks the same hero...
These are my triggers:
-
Events
- Map initialization
- Conditions
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Camera - Pan camera for (Picked player) to (Center of Region 012 <gen>) with height 0.00 above the terrain over 0.00 seconds
-
Loop - Actions
- Set Total_Heroes = 7
- Set Random_Count = 7
- Set Hero_Array[1] = Druid of the Talon
- Set Hero_Array[2] = Ugly Hunter
- Set Hero_Array[3] = Shadow Caster
- Set Hero_Array[4] = Secret Keeper
- Set Hero_Array[5] = Wolf Rider
- Set Hero_Array[6] = Tauren Chieftain
- Set Hero_Array[7] = O.o Panda
-
For each (Integer A) from 1 to 7, do (Actions)
-
Loop - Actions
- Set Random_Data[(Integer A)] = (Integer A)
-
Loop - Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Random Command
-
Events
- Player - Player 1 (Red) types a chat message containing -random as An exact match
- Player - Player 2 (Blue) types a chat message containing -random as An exact match
- Player - Player 3 (Teal) types a chat message containing -random as An exact match
- Player - Player 4 (Purple) types a chat message containing -random as An exact match
- Player - Player 5 (Yellow) types a chat message containing -random as An exact match
- Player - Player 6 (Orange) types a chat message containing -random as An exact match
- Player - Player 7 (Green) types a chat message containing -random as An exact match
- Player - Player 8 (Pink) types a chat message containing -random as An exact match
-
Conditions
- (Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0
-
Actions
- Set Random_Hero = (Random integer number between 1 and Random_Count)
- Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
- Item - Create Scroll of Town Portal at ((Triggering player) start location)
- Hero - Give (Last created item) to (Last created unit)
- Item - Create |cff530080Horn of Cenarius at ((Triggering player) start location)
- Hero - Give (Last created item) to (Last created unit)
- Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has randomed + (Name of (Last created unit))))
- Selection - Select (Last created unit) for (Owner of (Last created unit))
- Player - Set (Triggering player) Current lumber to 0
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
-
Loop - Actions
- Set Random_Data[Random_Hero] = Random_Count
- Set Random_Count = (Random_Count - 1)
-
Events
-
Manual Pick
-
Events
- Unit - A unit Sells a unit
-
Conditions
- ((Sold unit) is A Hero) Equal to True
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
-
Loop - Actions
- Game - Display to (All players) for 15.00 seconds the text: ((Name of (Owner of (Sold unit))) + ( has chosen + (Name of (Sold unit))))
- Selection - Select (Sold unit) for (Owner of (Sold unit))
-
Player Group - Pick every player in (All players) and do (Actions)
-
Events
Last edited: