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