• 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.

[Trigger] Region display

Status
Not open for further replies.
Level 8
Joined
Jul 10, 2018
Messages
383
Trying to make a message appears when someone enters a region he is not supposed to enter but its not working for somereason
  • Region Cant Enter
    • Events
      • Unit - A unit enters CANT ENTER <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 30
        • Then - Actions
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Not equal to 30
        • Then - Actions
          • Unit - Move (Triggering unit) instantly to (Center of Region 077 <gen>)
          • Game - Display to (Player group((Triggering player))) for 30.00 seconds the text: You're not level 30...
        • Else - Actions
 
I believe it's because you're referencing the triggering player, but since it was a unit, not a player, who triggered the event it won't show up. Display it to the owner of the triggering unit instead.

  • Game - Display to (Player group((Triggering player))) for 30.00 seconds the text: You're not level 30...
Do this instead;

  • Game - Display to (Player group((Owner of (Triggering unit)))) for 30.00 seconds the text: You're not level 30...
 
Level 8
Joined
Jul 10, 2018
Messages
383
I believe it's because you're referencing the triggering player, but since it was a unit, not a player, who triggered the event it won't show up. Display it to the owner of the triggering unit instead.

  • Game - Display to (Player group((Triggering player))) for 30.00 seconds the text: You're not level 30...
Do this instead;

  • Game - Display to (Player group((Owner of (Triggering unit)))) for 30.00 seconds the text: You're not level 30...
Works thanks
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
I believe it's because you're referencing the triggering player, but since it was a unit, not a player, who triggered the event it won't show up. Display it to the owner of the triggering unit instead.
Under the hood "generic unit events" are actually "player unit events". In those events Triggering Player does work because there's a specific player associated with the event. Unit enters region is not one such event, so Triggering Player does not work here.
 
Status
Not open for further replies.
Top