System Easy Hero Selection!

XxShadyxX

I abused the rep system.
Reaction score
81
5 variables:eek:
5 Triggers (6 counting Optional Trigger):nuts:
Difficulty to make: Medium:thup:
Leaks: none:thup:
Bugs: NEVER!:D

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?:eek: 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?:confused: 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))]
This sets the Left Arrow Event. Left arrow= Previous Hero.


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)]
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!
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))]
This is to choose the selected hero.
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
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
 

Attachments

  • XxShadyxX Keyboard Hero Selection! v1.1.w3x
    23.6 KB · Views: 270
Demo Map available? :eek: systems are so nice because you dont have to do everything by your own....
 
Ok there is a demo map now! Gl hf! Please ppl test it out and comment!!
 
Neat system :)

I found it annoying though that the camera kept trying to move while I was selecting heroes :p

+rep and props for a cool system and effort.
 
Dude.. Wtf is all this spam?!
You posted 6 times in a row!

Isn't this the same as your other 'system'?

Leaks: none
As you can probally see there are a few leaks but I bet you all know how to fix them.
Gj contradicting yourself. Also, a system should minimize work for the user.
 
oops sorry i havent edited the codes becuase the 1.1 of the system is leakless!
dude yea I posted 6 times in a row but each one is 24 hours apart...
sorry I forgot to edit it....

and as to the other system I redid it to be less laggier and better and rewrote it to have better description
 
They're not 24 hours apart.
In order, they're: 22 minutes, >24 hours, 12 hours, 10 hours, ~24 hours.

Anyway, you could've updated the old system, right? :)
 
not really.... too hard becuase I would have to rewrite everything and ugh.... find out which is suppose to stay or not... so sorry
anyway thx for the +rep :D
 
I gave you +Rep? I don't remember :p
Oh well ^^
 
lol thx...
anyway people I would love more comments on this.. I will update the codes soon but it is already on the 1.1 version of the map so dl that and copy and paste...
 
not sure lol maybe fix the bouncing it dose at times when changing heros (screen trys to move and bounces back)

lol but realy its a realy good slection im gessing its baseded off the race map(forgot its name lol)


EDIT: i came up with an idea lol is it posible for you to add a random function to it :D and maybe allow it so the host choses all random or all pick at the start basicly allowing it to be used more for hero arenas :D ^^ im just starting my first hero arena and might end up using this for the slection becuse i hate the normal circle slection lol
 
Nope not based on anything... Just thought of it one day and made it...
I already fixed the bouncing.. check out v1.1
 
i was using 1.1 lol :D
just thought u must have learnt the idea from that map lol
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top