• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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 39
Joined
Feb 27, 2007
Messages
5,037
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