• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] why is this trigger not working?

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
  • add module around after upgrade
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Point-value of (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit - Order (Triggering unit) to Right-Click (Find the item next ot Temp_Point)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Point-value of (Triggering unit)) Equal to 2
            • Then - Actions
              • Unit - Order (Triggering unit) to Right-Click (Find the item next ot Temp_Point)
              • Unit - Order (Triggering unit) to Right-Click (Find the item next ot Temp_Point)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Point-value of (Triggering unit)) Equal to 3
                • Then - Actions
                  • Unit - Order (Triggering unit) to Right-Click (Find the item next ot Temp_Point)
                  • Unit - Order (Triggering unit) to Right-Click (Find the item next ot Temp_Point)
                  • Unit - Order (Triggering unit) to Right-Click (Find the item next ot Temp_Point)
                • Else - Actions
cant figure it out. item-pickup-range is set to 3000 so that can not be the reason.

yes unit is ment to be a structure.
yes the "unit finishes upgrade"-unit is detected by calling "triggering unit"

so wheres the problem?
 
Level 5
Joined
May 27, 2007
Messages
126
like wolfman, said you made the trigger under the condition of "point value is 1" or "2" or "3" but you forgot to make a trigger that actually aranges it when the unit has this value. It's basically like this simple example:

Condition
You wear sportshoes

Action
You can go jogging

this trigger makes an action when you got the sportshoes on, it doesnt arrange that you actually got the sportshoes on, it basically only tells what to do if you DO wear them!!
 
Level 11
Joined
May 31, 2008
Messages
698
hes not even creating an item idk where it is supposed to be coming from. Also make sure the building has an inventory. You can do this action:
Hero - Create Tome of Experience and give it to (Triggering unit)
I think it should work for any unit, not only heroes even tho its a hero function, but thats prolly because usually heroes are the ones with inventories, not buildings.
 
Status
Not open for further replies.
Top