Text message won't show

Sunchips

New Member
Reaction score
6
For now I want the text message "Knight" to be shown for a player who selects a "Knight Selection"-unit on my map but it won't show the message. Here's my trigger

Trigger:
  • Text Knight
    • Events
      • Unit - Knight Selection 0010 <gen> Is selected
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Game - Display to Player 1 (Red), at offset (0.00, 0.00) the text: Knight
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to Player 2 (Blue)
            • Then - Actions
              • Game - Display to Player 2 (Blue), at offset (0.00, 0.00) the text: Knight
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Triggering player) Equal to Player 3 (Teal)
                • Then - Actions
                  • Game - Display to Player 3 (Teal), at offset (0.00, 0.00) the text: Knight
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Equal to Player 4 (Purple)
                    • Then - Actions
                      • Game - Display to Player 4 (Purple), at offset (0.00, 0.00) the text: Knight
                    • Else - Actions
                      • Do nothing
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
why use the offset thas messing it up. Just have a normal text or floating
 

volg11

New Member
Reaction score
1
Trigger:
  • Text Knight
    • Events
      • Unit - Knight Selection 0010 <gen> Is selected
    • Conditions


I'm not entirely sure about this, kozz only works with units placed on the map. The only way i know to do what u want is with a periodic trigger, checking the selection of the player and showing if the selection == knight.
 

volg11

New Member
Reaction score
1
Not quite, for "normal text" he means auto-timed / explicitly timed text.

try:
Trigger:
  • Events
    • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Random unit from (Units currently selected by Player 1 (Red)))) Equal to Knight
        • Then - Actions
          • -------- ur actions --------
        • Else - Actions
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Yes what yoshi showed it the normal text
 

Sunchips

New Member
Reaction score
6
Well tried it, here's my trigger. It doesn't work

Trigger:
  • Text Knight
    • Events
      • Unit - Knight Selection 0010 <gen> Is selected
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Game - Display to (All players) for 30.00 seconds the text: knight
        • Else - Actions
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Just change the event to a player selects a unit for test purposes
 

LoveRPG

Member
Reaction score
6
you will have to set condition to: (owner of(selected unit/Triggering unit). It is a unit event, not a player event that is why it wont work.
 

Sunchips

New Member
Reaction score
6
the unit the player is supposed to select wich runs the trigger is a neutral passive, it's meant that i'f you click on him it will show information about him as hero
 

LoveRPG

Member
Reaction score
6
Other wise it need to be in the player events. Which exists: Player - A player selects a unit. Quite easy mate^^ Hope this will help:)
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
thats why when a player selects a unit not owned by him it does trigger the event coz it does count as a selection
 

Sunchips

New Member
Reaction score
6
Then how can I do if I want this to happen? Whenever a player clicks a hero selection dummy it will get information about the hero
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top