• 🏆 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!

Warding trigger not working

Status
Not open for further replies.
Level 26
Joined
Dec 3, 2018
Messages
874
The trigger below should make a witch doctor make a sentry ward at his position when entering t1 front, but it does nothing :/. the variable is set to none from the beggining
  • T1SentryWardFront1
    • Events
      • Unit - A unit enters T1 Front <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Level of Sentry Ward for (Triggering unit)) Greater than or equal to 1
          • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WardT1Front1 Equal to No unit
        • Then - Actions
          • Unit - Order (Triggering unit) to Orc Witch Doctor - Sentry Ward (Position of (Triggering unit))
        • Else - Actions
 

Uncle

Warcraft Moderator
Level 65
Joined
Aug 10, 2018
Messages
6,657
Your Conditions aren't being met then. Disable them 1 by 1 and see what happens. I assume it's WardT1Front1 that's not working since the other 2 Conditions would be pretty obvious.

Also, delete this:
  • And - All (Conditions) are true
That's unnecessary, all Conditions need to be true by default.

You use AND in cases where you're using OR like this for example: If ConditionA is true OR ConditionB AND ConditionC are true

Lastly, I would Display a text message before the Order is issued to confirm that all of the Conditions have been met and it isn't an issue with the Order.
 
Status
Not open for further replies.
Top