• 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] A messed up trigger?

Status
Not open for further replies.
Level 2
Joined
Jan 22, 2010
Messages
9
Heres the trigger

  • Set mana plus when unit goldmines
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: if GetIssuedOrderId() == 852017 then
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Key load) is stored as a Handle of (Key (Triggering unit)) in Hash) Equal to False
        • Then - Actions
          • Hashtable - Save Handle Of(Target unit of issued order) as (Key load) of (Key (Triggering unit)) in Hash
        • Else - Actions
      • Custom script: elseif GetIssuedOrderId() == 852018 then
      • Set LoadStructure = (Load (Key load) of (Key (Triggering unit)) in Hash)
      • Unit - Set mana of LoadStructure to ((Mana of LoadStructure) + 1.00)
      • Custom script: endif
The custom scripts look corrupted to me, no idea how it happened. Someone made this trigger for me years ago, I cant find the post. The point of the trigger is that when a paesant returns gold to loadstructure it gains mana. This doesnt let me open the map in WEU, but id still like to have this trigger. How to fix it?
 
Status
Not open for further replies.
Top