• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

hi there, help on hero selction pads please.

Status
Not open for further replies.
Level 2
Joined
Apr 10, 2006
Messages
9
hi there, im making a map where the players must move there whisps to select a hero.

At the moment i've triggered it:

event - a unit enters (region over hero)
Conditions - if (whisp) = to (player 1)
actions - Create 1 (type of hero) at (region)

Iv done this for both red and blue player (two player map) however when red picks a hero, it creates that hero for blue aswell.

Im sure theres a simpler way of doing this?

Thanks.
 
Level 3
Joined
May 6, 2006
Messages
44
Lets say you want the paladin section

Paladin <gen> = region of paladin
Arena <gen> = Where the paladin will spawn
Camera: This will move the player's camera to where the unit is spawned, which is Arena <gen> so they don't go "wtf? weres my hero?"

Hope it helps

Code:
Palladin
    Events
        Unit - A unit enters Paladin <gen>
    Conditions
        (Unit-type of (Triggering unit)) Equal to Wisp
    Actions
        Unit - Remove (Triggering unit) from the game
        Unit - Create 1 Paladin for (Owner of (Triggering unit)) at (Center of Arena <gen>) facing Default building facing degrees
        Camera - Pan camera for (Triggering player) to (Center of Starter <gen>) over 0.00 seconds
        Camera - Pan camera as necessary for (Owner of (Triggering unit)) to (Center of Starter <gen>) over 0.00 seconds
 
Level 2
Joined
Apr 10, 2006
Messages
9
yea thanks that helped alot!

my next issue is this:

I would like to have a '-repick' option if you're heroe dies, however how do you make it so the repick option only works AFTER you're heroe is dead (so you cant type -repick a million times and have lots) :D

Thanks
 
Level 4
Joined
Feb 1, 2006
Messages
107
Easy Way

Well if you have no summons then:

Event:
When a unit owned by (player 1 red) dies.
Condition:
None
Event:
Trigger - Turn on Trigger (player 1 repick)



Trigger for Repick, click the box up the top of the trigger that says initally on, so that there is no tick then



Event:
Chat Message - When (player 1 red) types -repick as an exact match
Condition:
None
Event:
Create 1 (hero selector) for (player 1 red) at centre of region(select hero place).

trigger - Turn off (this trigger)







simply change player 1 to player 2. for the triggers and walaa, basic triggers for your hero repick. If it's too confusing then i'll be happy to explain it in greater detail.
 
Level 3
Joined
May 6, 2006
Messages
44
ok, you can do one of the following:

1 ) Only repick in the first X minutes/seconds/hours of the game

2 ) After the hero dies, choose another different character and start all over

3 ) only repick ONCE in the whole game



1 )Repick
Code:
Events
        Player - Player 1 (Red) types a chat message containing -repick as An exact match
        Player - Player 2 (Blue) types a chat message containing -repick as An exact match
        Player - Player 3 (Teal) types a chat message containing -repick as An exact match
        Player - Player 4 (Purple) types a chat message containing -repick as An exact match
        Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
        Player - Player 6 (Orange) types a chat message containing -repick as An exact match
        Player - Player 7 (Green) types a chat message containing -repick as An exact match
        Player - Player 8 (Pink) types a chat message containing -repick as An exact match
        Player - Player 9 (Gray) types a chat message containing -repick as An exact match
        Player - Player 10 (Light Blue) types a chat message containing -repick as An exact match
    Conditions
        NONE
    Actions
        Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
            Loop - Actions
                If (((Picked unit) is A Hero) Equal to True) then do (Unit - Remove (Picked unit) from the game) else do (Do nothing)
        Unit - Create 1 Hero Selector for (Triggering player) at (Center of Repick Area <gen>) facing 90.00 degrees
        Camera - Pan camera for (Triggering player) to (Center of Repick Area <gen>) over 1.00 seconds

AND

Time limit Repick
Code:
 Events
        Time - Elapsed game time is X seconds
    Conditions
    Actions
        Trigger - Turn off Repick <gen>




2 ) Unit Dies repick
Code:
Events
        Player - Player 1 (Red) types a chat message containing -repick as An exact match
    Conditions
        (Number of units in (Units owned by Player 1 (Red))) Equal to 0
    Actions
        Unit - Create 1 Hero Picker for Player 1 (Red) at (Center of Repick Area <gen>) facing Default building facing degrees


3 )

Code:
Events
        Player - Player 1 (Red) types a chat message containing -repick as An exact match
    Conditions
            NONE
Actions
    Unit - Create 1 Hero Picker for Player 1 (Red) at (Center of Repick Area <gen>) facing Default building facing degrees
Trigger - Turn off Repick <gen>[/code]


REMEMBER, for all triggers, if you want only to repick ONCE then at the end of the trigger make

Code:
Trigger - Turn off Repick <gen>

If you want the player to repick, lets say 3 times in the game, then tell me so i can help[/code]
 
Status
Not open for further replies.
Top