- Joined
- Aug 3, 2004
- Messages
- 2,906
I always see people saying no to use it, why?
function DoNothing takes nothing returns nothing
endfunction
call DoNothing()
hook DoNothing <insert function name here>
Spawn Hero
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomHero Equal to 1
Then - Actions
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Magnate for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 12 (Brown) slot status) Equal to Is playing) then do (Unit - Create 1 Wolf Rider for Player 12 (Brown) at (Player 12 (Brown) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Shadow Hunter for Player 10 (Light Blue) at (Player 10 (Light Blue) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Lord for Player 2 (Blue) at (Player 2 (Blue) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Create 1 Blood Mage for Player 6 (Orange) at (Player 6 (Orange) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 1 Bowmaster for Player 4 (Purple) at (Player 4 (Purple) start location) facing Default building facing degrees) else do (Do nothing)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomHero Equal to 2
Then - Actions
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Shadow Hunter for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 12 (Brown) slot status) Equal to Is playing) then do (Unit - Create 1 Magnate for Player 12 (Brown) at (Player 12 (Brown) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Wolf Rider for Player 10 (Light Blue) at (Player 10 (Light Blue) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Bowmaster for Player 2 (Blue) at (Player 2 (Blue) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Create 1 Lord for Player 6 (Orange) at (Player 6 (Orange) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 1 Blood Mage for Player 4 (Purple) at (Player 4 (Purple) start location) facing Default building facing degrees) else do (Do nothing)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomHero Equal to 3
Then - Actions
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Wolf Rider for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 12 (Brown) slot status) Equal to Is playing) then do (Unit - Create 1 Shadow Hunter for Player 12 (Brown) at (Player 12 (Brown) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Magnate for Player 10 (Light Blue) at (Player 10 (Light Blue) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Blood Mage for Player 2 (Blue) at (Player 2 (Blue) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Create 1 Bowmaster for Player 6 (Orange) at (Player 6 (Orange) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 1 Lord for Player 4 (Purple) at (Player 4 (Purple) start location) facing Default building facing degrees) else do (Do nothing)
Else - Actions
Trigger - Turn off (This trigger)