Select Hero and Display Text

Craigimus

New Member
Having a memory blank and cant remember how to make a quick trigger when someone selects a unit then it displays a text to the triggering player and not to all the players. this is what ive done atm but its to much :p to do for all heroes etc.


Jack Skellington
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Player - Player 7 (Green) Selects a unit
Player - Player 8 (Pink) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Equal to (==) Jack Skellington
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 1 (Red)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 1 (Red)
Game - Display to Player Group - Player 1 (Red) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 2 (Blue)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 2 (Blue)
Game - Display to Player Group - Player 2 (Blue) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 3 (Teal)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 3 (Teal)
Game - Display to Player Group - Player 3 (Teal) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 4 (Purple)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 4 (Purple)
Game - Display to Player Group - Player 4 (Purple) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 5 (Yellow)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 5 (Yellow)
Game - Display to Player Group - Player 5 (Yellow) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 6 (Orange)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 6 (Orange)
Game - Display to Player Group - Player 6 (Orange) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 7 (Green)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 7 (Green)
Game - Display to Player Group - Player 7 (Green) the text: Jack Skellington: A...
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) Player 8 (Pink)
Then - Actions
Cinematic - Clear the screen of text messages for Player Group - Player 8 (Pink)
Game - Display to Player Group - Player 8 (Pink) the text: Jack Skellington: A...
Else - Actions
 

Craigimus

New Member
Will that work ? or will it display it to all players?


Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to (==) (Picked player)
Then - Actions
Cinematic - Clear the screen of text messages for (All players matching ((Triggering player) Equal to (==) (Picked player)))
Game - Display to (All players matching ((Picked player) Equal to (==) (Picked player))) the text: Jack Skellington: A...
Else - Actions
 

Xorifelse

I'd love to elaborate about discussions...........
A much better way is this..

Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • heroSelectionVarArray[(Player number of (Triggering player))] Equal to False
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: (You selected: + (Name of (Triggering unit)))
      • Set heroSelectionVarArray[(Player number of (Triggering player))] = True
 

Craigimus

New Member
Another question while on subject.

Im going to use Press the Up key to select hero.

How can i make the player unable to select more then one hero?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    Thanks for the context.
    +1
  • The Helper The Helper:
    Happy Hump Day!!!
  • Blackveiled Blackveiled:
    TH old fart gotta have a beer with me one of these days
  • The Helper The Helper:
    I am down anytime Blackveiled
  • Blackveiled Blackveiled:
    count on it then cause you don't live that far from me hah
  • The Helper The Helper:
    really that is cool!
  • The Helper The Helper:
    Hey Tom I added a new Weird tag to the News Prefixes
  • The Helper The Helper:
    What is up Blackveiled?
  • Blackveiled Blackveiled:
    Chillin', lurkin'. :D
  • The Helper The Helper:
    I am working on a bunch of site projects right now doing a bunch of behind the scenes stuff and trying to clean up some stuff that I let slide when I got lazy with the site for a few years...
  • The Helper The Helper:
    Are you in Houston Blackveiled or just in Texas?
  • Blackveiled Blackveiled:
    Houston
  • Blackveiled Blackveiled:
    I've been living here since 2014.
  • The Helper The Helper:
    OK banlord we need to get together soon! The only other member of the site I know in Houston is XXX Conan
  • The Helper The Helper:
    and he does not want none lol
  • The Helper The Helper:
    he put up a picture of his mom one time and she was HOT!
  • The Helper The Helper:
    I wish we still had that
  • Blackveiled Blackveiled:
    Lmao you scared him off I see.
  • The Helper The Helper:
    he will be back
  • The Helper The Helper:
    Conan was like 12 when he started here
  • The Helper The Helper:
    I literally think I was his male role model
  • Blackveiled Blackveiled:
    Yeah I was 12 when I started here as well.
  • The Helper The Helper:
    you guys were just kids
  • The Helper The Helper:
    I was in my 30s when i got the Blizzard MVP
  • The Helper The Helper:
    I am 53

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top