Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Rpg system testing map.w3x
Variables
Initialization
Melee Initialization
Hero selection system
Player seleced the hero of heis liking
Leftover heros cleanup
This map has been created to give all rpg creators out there a quick and nice looking way of creating a Hero Selection System. Just copy-paste the trigger folder named Hero Selection system and check out the variables.
The triggers are using 2 regions to clean up the leftover heros and one region to tele the hero player to (its currently set to center of playable map) To amke the trigger to work you shuld just crea 2 regions.. 1 for hero cleanup and one for the place the hero shuld go to.
The only variable thats used in this map is: Player_hero. Its a unit variable without any arrays or indexes. This is the unit you shuld point to if you want to create quests and use the hero as the quest receiver (and if you want to make a revive hero system) So the variable is:
Player_hero
Unit (variable)
no arrays and no indexes.
//hapy mapping greetings from Fire_inferno_II(aka Dwarf Rogue II)
Name
Type
is_array
initial_value
Player_hero
unit
No
Selected_hero
unit
Yes
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Player seleced the hero of heis liking
Events
Player - Player 1 (Red) Selects a unit
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set Variable Set Player_hero = (Triggering unit)
Unit - Move Player_hero instantly to (Center of (Playable map area))
Camera - Lock camera target for Player 1 (Red) to Player_hero , offset by ( 0 , 0 ) using Default rotation
Game - Display to (All players) the text: (|cffffcc00You have chosen your hero to be:|r + (Name of Player_hero))
Leftover heros cleanup
Events
Unit - A unit enters Region_001 <gen>
Conditions
Actions
Unit Group - Pick every unit in (Units in Region_000 <gen>) and do (Remove (Picked unit) from the game)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.