never fear we can break that down for you
Code:
1) Multiple triggers:
Event:
Player - A player types a chat message equal to [-Yourcodehere] as an equal match
Action:
Unit - Create [1] [Loaded Hero] for [Triggering Player] facing [Default building degrees]
Create multiple triggers for each text match. You must then turn off the triggers so that you cannot have multiple units, which I doubt you want.
Ok the event of this trigger is simply checking for the code. which you put in where -yourcodehere is... the action creates that loaded unit. now you just need to copy and paste them and modify the code to enter and the loaded unit and your set for that
Code:
2) When the unit steps in a switch:
Put a region on the switch.
Create a variable, type countdown timer. I'll call mine 'x42'.
Then make a spawning trigger.
Event:
Unit - [Your hero] enters [that region]
Action:
Countdown Timer - Set [x42] to a countdown timer that expires after [spawn time?] seconds as a [Repeating] timer. (Or something like that)
Trigger - Turn on [Spawning trigger]
Trigger - Turn off [This trigger]
Spawning trigger:
Event:
Timer - [x42] expires
Action:
Unit - Create your spawn options
You can place a region on the switch by going into the editor and opening up the regions pallete and place one over the switch. The First Trigger the Event is just making sure a players hero entered the region over the switch. The action start a countdown timer and then turns on your spawning trigger which is right below that one
the spawning triggers Event is just checking that the timer expired. Then the action creates the units.