BornANoob[MR]
Member
- Reaction score
- 21
Hey all, i've seen a few posts over the last few days about how to make a random hero chooser for Hero arenas and similar games, so i thought i would post a little trigger which will choose a random hero for you if you are using the old Circle of Power method.
Choosing a random hero by walking into a designated random hero circle:
Using a similar trigger to the one above, having everyone choose a random hero, by way of the host typing a message.
This basically teleports all the choosers to the random chooser circle of power, which in turn selects a random hero!
I hope this helps all you people wanting to select random things, enjoy!
Choosing a random hero by walking into a designated random hero circle:
Code:
Random Hero
Events
Unit - A unit comes within 5.00 of Circle of Power 0000 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to (Your Choosing Unit)
Actions
Unit - Move (Triggering unit) instantly to (Position of (Random unit from (Units in Region 0000 <gen> matching ((Unit-type of (Matching unit)) Equal to Circle of Power))))
Using a similar trigger to the one above, having everyone choose a random hero, by way of the host typing a message.
Code:
All Random
Events
Player - Player 1 (Red) types a chat message containing -ar as An exact match
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Move Chooser 0001 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0002 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0003 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0004 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Wait 0.01 seconds
Unit - Move Chooser 0005 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0006 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0007 <gen> instantly to (Position of Circle of Power 0055 <gen>)
Unit - Move Chooser 0008 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Wait 0.01 seconds
Unit - Move Chooser 0009 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0010 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0011 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Unit - Move Chooser 0012 <gen> instantly to (Position of Circle of Power 0000 <gen>)
Trigger - Turn off (This trigger)
This basically teleports all the choosers to the random chooser circle of power, which in turn selects a random hero!
I hope this helps all you people wanting to select random things, enjoy!