XxShadyxX
I abused the rep system.
- Reaction score
- 81
5 variables
5 Triggers (6 counting Optional Trigger):nuts:
Difficulty to make: Medium:thup:
Leaks: none:thup:
Bugs: NEVER!
1)Intro
2)What does it do?
3) Instructions:
4)Why use this?
A. Pros
B. Cons
Introduction:
This system is to help you with a more simpler and easier way of selecting a hero for a rpg/Arena type maps! This is all done in GUI. As you can probally see there are a few leaks but I bet you all know how to fix them.
What does it do?:
Ok so at the start of the game the camara rolls down to eye level at your starting location. Then it will create a hero for each player owned by that player. So how do I change the hero? You push the left and right arrow keys to cycle through the choices. When you push Left or Right Arrow keys it will replace the hero you see with the next hero or if you pushed left it will go to previous. Also It will automatically select the hero to look at the spells! So how do I choose the hero I want? Push the up arrow! This will reset your camara and disable the choosing.
This system is totally customizable like you can add a all random mode or a repick system.
Intructions:
First make a camera. Set the camera to Eye Level. Make It face North.(This is IMPORTANT) Ok then copy and paste it at each players start location.
Now we need some variables:
Variable name: Type: Size:
Heros Unit-type Array----- How many heros your going to use.
Camara_Veiw Camara Array----- The amount of camaras your using that are targeting each players start location.
Integer Integer Array----- Amount of players playing.
Unit Unit Group Array----- Amount of players playing.
Boolean Boolean Array----- Amount of players playing.
Ok so first make trigger named Initialization and follow the trigger:
INITIALIZATION
This sets the starting camara view at each players start location and keeps them from moving the camara away.
CAMARA
This sets the right arrow change event. Right arrow= next hero.
RIGHT ARROW KEY
This sets the Left Arrow Event. Left arrow= Previous Hero.
LEFT ARROW KEY
JUMP TO HEROOPTIONAL
This is to jump to the number you enter. What you can do is when the choosing starts you can make a message that lists all the heros and their numbers! For faster choosing!
This is to choose the selected hero.
SELECT THE HERO
Makes it so when you select another unit it wont let you.
Makes it so you cant move around
Ok that’s it! Your hero selection system is complete!
Why use this?
Pros-
1. Faster way of choosing a hero
2. No race to pick a hero
3. Gives you a closer look at a hero (literally) To see spells and attributes faster
4. Saves room in your map to place something that you might need there.
Cons
1. Slight lag in beginning but goes away
Well that’s it! Thank you for looking at this system and I Hope you use it! Please give credit if you use it!
Thanks Happy map making!:thup:
Changes in 1.1
-Extreme less lag
-Camera stays in place
-Leaks removed
5 Triggers (6 counting Optional Trigger):nuts:
Difficulty to make: Medium:thup:
Leaks: none:thup:
Bugs: NEVER!
1)Intro
2)What does it do?
3) Instructions:
4)Why use this?
A. Pros
B. Cons
XxShadyxX Hero Selection System!
Introduction:
This system is to help you with a more simpler and easier way of selecting a hero for a rpg/Arena type maps! This is all done in GUI. As you can probally see there are a few leaks but I bet you all know how to fix them.
What does it do?:
Ok so at the start of the game the camara rolls down to eye level at your starting location. Then it will create a hero for each player owned by that player. So how do I change the hero? You push the left and right arrow keys to cycle through the choices. When you push Left or Right Arrow keys it will replace the hero you see with the next hero or if you pushed left it will go to previous. Also It will automatically select the hero to look at the spells! So how do I choose the hero I want? Push the up arrow! This will reset your camara and disable the choosing.
This system is totally customizable like you can add a all random mode or a repick system.
Intructions:
First make a camera. Set the camera to Eye Level. Make It face North.(This is IMPORTANT) Ok then copy and paste it at each players start location.
Now we need some variables:
Variable name: Type: Size:
Heros Unit-type Array----- How many heros your going to use.
Camara_Veiw Camara Array----- The amount of camaras your using that are targeting each players start location.
Integer Integer Array----- Amount of players playing.
Unit Unit Group Array----- Amount of players playing.
Boolean Boolean Array----- Amount of players playing.
Ok so first make trigger named Initialization and follow the trigger:
INITIALIZATION
Code:
Initialization Copy
Events
Map initialization
Conditions
Actions
Set Heros[1] = Paladin
Set Heros[2] = Archmage
Set Heros[3] = Mountain King
Set Heros[4] = Blood Mage
Set Heros[5] = Blademaster
Set Heros[6] = Far Seer
Set Heros[7] = Tauren Chieftain
Set Heros[8] = Shadow Hunter
Set Heros[9] = Death Knight
Set Heros[10] = Lich
Set Heros[11] = Dreadlord
Set Heros[12] = Crypt Lord
Set Heros[13] = Keeper of the Grove
Set Heros[14] = Priestess of the Moon
Set Heros[15] = Demon Hunter
Set Heros[16] = Warden
Set Heros[17] = Firelord
Set Heros[18] = Pandaren Brewmaster
Set Heros[19] = Pit Lord
Set Heros[20] = Beastmaster
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Trigger - Add to Reselect <gen> the event (Player - (Picked player) Deselects a unit)
Game - Display to (All players) for 10000000.00 seconds the text: |CFF0000EEChoose yo...
Set Camara_View[1] = Camera 001 <gen>
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Set Point = ((Picked player) start location)
Camera - Pan camera for (Picked player) to Point over 0.00 seconds
Camera - Apply Camara_View[(Player number of (Picked player))] for (Picked player) over 1.00 seconds
Set Integer[(Player number of (Picked player))] = (Player number of (Picked player))
Unit - Create 1 Heros[1] for (Picked player) at Point facing Default building facing degrees
Set Unit[Integer[(Player number of (Picked player))]] = (Last created unit)
Selection - Select Unit[(Player number of (Picked player))]
Set Group = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
Custom script: call DestroyGroup (udg_Group)
Custom script: call RemoveLocation (udg_Point)
Trigger - Turn on Right <gen>
Trigger - Turn on left <gen>
Trigger - Turn on Camara <gen>
Trigger - Turn on Select1 Copy <gen>
Trigger - Turn on Jump to Hero <gen>
Trigger - Turn on DontMove <gen>
Trigger - Turn on Reselect <gen>
This sets the starting camara view at each players start location and keeps them from moving the camara away.
CAMARA
Code:
Camara
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boolean[(Player number of (Picked player))] Equal to True
Then - Actions
Do nothing
Else - Actions
Camera - Apply Camara_View[(Player number of (Picked player))] for (Picked player) over 0.00 seconds
This sets the right arrow change event. Right arrow= next hero.
RIGHT ARROW KEY
Code:
Right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Player - Player 2 (Blue) Presses the Right Arrow key
Player - Player 3 (Teal) Presses the Right Arrow key
Player - Player 4 (Purple) Presses the Right Arrow key
Player - Player 5 (Yellow) Presses the Right Arrow key
Player - Player 6 (Orange) Presses the Right Arrow key
Player - Player 7 (Green) Presses the Right Arrow key
Player - Player 8 (Pink) Presses the Right Arrow key
Player - Player 9 (Gray) Presses the Right Arrow key
Player - Player 10 (Light Blue) Presses the Right Arrow key
Player - Player 11 (Dark Green) Presses the Right Arrow key
Player - Player 12 (Brown) Presses the Right Arrow key
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[COLOR="Blue"]Boolean[/COLOR][(Player number of (Triggering player))] Equal to True
Then - Actions
Do nothing
Else - Actions
Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
Set [COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))] = ([COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))] Less than or equal to 20
Then - Actions
Unit - Replace [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] with a [COLOR="blue"]Heros[/COLOR][[COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))]] using The new unit's default life and mana
Set [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] = (Last replaced unit)
Selection - Select [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] for (Triggering player)
Game - Display to (Player group((Triggering player))) the text: (Name of [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))])
Else - Actions
Unit - Replace [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] with a [COLOR="blue"]Heros[/COLOR][1] using The new unit's default life and mana
Set [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] = (Last replaced unit)
Selection - Select [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] for (Triggering player)
Set [COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))] = 1
Game - Display to (Player group((Triggering player))) the text: (Name of [COLOR="Blue"]Unit[/COLOR][(Player number of (Triggering player))])
Unit - Pause [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))]
LEFT ARROW KEY
Code:
left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Player - Player 2 (Blue) Presses the Left Arrow key
Player - Player 3 (Teal) Presses the Left Arrow key
Player - Player 4 (Purple) Presses the Left Arrow key
Player - Player 5 (Yellow) Presses the Left Arrow key
Player - Player 6 (Orange) Presses the Left Arrow key
Player - Player 7 (Green) Presses the Left Arrow key
Player - Player 8 (Pink) Presses the Left Arrow key
Player - Player 9 (Gray) Presses the Left Arrow key
Player - Player 10 (Light Blue) Presses the Left Arrow key
Player - Player 11 (Dark Green) Presses the Left Arrow key
Player - Player 12 (Brown) Presses the Left Arrow key
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[COLOR="blue"]Boolean[/COLOR][(Player number of (Triggering player))] Equal to True
Then - Actions
Do nothing
Else - Actions
Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
Set [COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))] = (Integer[(Player number of (Triggering player))] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[COLOR="blue"] Integer[/COLOR][(Player number of (Triggering player))] Greater than or equal to 1
Then - Actions
Unit - Replace [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] with a [COLOR="blue"]Heros[/COLOR][[COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))]] using The new unit's default life and mana
Set [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] = (Last replaced unit)
Selection - Select [COLOR="Blue"]Unit[/COLOR][(Player number of (Triggering player))] for (Triggering player)
Game - Display to (Player group((Triggering player))) the text: (Name of [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))])
Else - Actions
Unit - Replace [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] with a [COLOR="blue"]Heros[/COLOR][20] using The new unit's default life and mana
Set [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] = (Last replaced unit)
Selection - Select [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))] for (Triggering player)
Set [COLOR="blue"]Integer[/COLOR][(Player number of (Triggering player))] = 20
Game - Display to (Player group((Triggering player))) the text: (Name of [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))])
Unit - Pause [COLOR="blue"]Unit[/COLOR][Player number of(Triggering player)]
This is to jump to the number you enter. What you can do is when the choosing starts you can make a message that lists all the heros and their numbers! For faster choosing!
Code:
Jump to Hero
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
Player - Player 4 (Purple) types a chat message containing <Empty String> as A substring
Player - Player 5 (Yellow) types a chat message containing <Empty String> as A substring
Player - Player 6 (Orange) types a chat message containing <Empty String> as A substring
Player - Player 7 (Green) types a chat message containing <Empty String> as A substring
Player - Player 8 (Pink) types a chat message containing <Empty String> as A substring
Player - Player 9 (Gray) types a chat message containing <Empty String> as A substring
Player - Player 10 (Light Blue) types a chat message containing <Empty String> as A substring
Player - Player 11 (Dark Green) types a chat message containing <Empty String> as A substring
Player - Player 12 (Brown) types a chat message containing <Empty String> as A substring
Conditions
(Integer((Entered chat string))) Less than or equal to 20
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Entered chat string))) Equal to 0
Then - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boolean[(Player number of (Triggering player))] Equal to True
Then - Actions
Do nothing
Else - Actions
Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
Set Integer[(Player number of (Triggering player))] = (Integer((Entered chat string)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Integer[(Player number of (Triggering player))] Less than or equal to 20
Then - Actions
Unit - Replace Unit[(Player number of (Triggering player))] with a Heros[Integer[(Player number of (Triggering player))]] using The new unit's default life and mana
Set Unit[(Player number of (Triggering player))] = (Last replaced unit)
Selection - Select Unit[(Player number of (Triggering player))] for (Triggering player)
Game - Display to (Player group((Triggering player))) the text: (Name of Unit[(Player number of (Triggering player))])
Else - Actions
Unit - Pause Unit[(Player number of (Triggering player))]
SELECT THE HERO
Code:
Select1 Copy
Events
Player - Player 1 (Red) Presses the Up Arrow key
Player - Player 2 (Blue) Presses the Up Arrow key
Player - Player 3 (Teal) Presses the Up Arrow key
Player - Player 4 (Purple) Presses the Up Arrow key
Player - Player 5 (Yellow) Presses the Up Arrow key
Player - Player 6 (Orange) Presses the Up Arrow key
Player - Player 7 (Green) Presses the Up Arrow key
Player - Player 8 (Pink) Presses the Up Arrow key
Player - Player 9 (Gray) Presses the Up Arrow key
Player - Player 10 (Light Blue) Presses the Up Arrow key
Player - Player 11 (Dark Green) Presses the Up Arrow key
Player - Player 12 (Brown) Presses the Up Arrow key
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[COLOR="blue"]Boolean[/COLOR][(Player number of (Triggering player))] Equal to True
Then - Actions
Do nothing
Else - Actions
Set [COLOR="blue"]Boolean[/COLOR][(Player number of (Triggering player))] = True
Unit - Unpause [COLOR="blue"]Unit[/COLOR][(Player number of (Triggering player))]
Camera - Reset camera for (Triggering player) to standard game-view over 2.00 seconds
Makes it so when you select another unit it wont let you.
Code:
Reselect
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boolean[(Player number of (Owner of (Triggering unit)))] Equal to True
Then - Actions
Do nothing
Else - Actions
Selection - Select Unit[(Player number of (Triggering player))] for (Triggering player)
Makes it so you cant move around
Code:
DontMove
Events
Unit - A unit Is issued an order with no target
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order targeting an object
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boolean[(Player number of (Triggering player))] Equal to True
Then - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) is A Hero) Equal to True
Then - Actions
Set OrderUnit[(Player number of (Triggering player))] = (Triggering unit)
Trigger - Turn off (This trigger)
Unit - Pause OrderUnit[(Player number of (Triggering player))]
Unit - Order OrderUnit[(Player number of (Triggering player))] to Stop
Unit - Unpause OrderUnit[(Player number of (Triggering player))]
Trigger - Turn on (This trigger)
Else - Actions
Why use this?
Pros-
1. Faster way of choosing a hero
2. No race to pick a hero
3. Gives you a closer look at a hero (literally) To see spells and attributes faster
4. Saves room in your map to place something that you might need there.
Cons
1. Slight lag in beginning but goes away
Well that’s it! Thank you for looking at this system and I Hope you use it! Please give credit if you use it!
Thanks Happy map making!:thup:
Changes in 1.1
-Extreme less lag
-Camera stays in place
-Leaks removed