• 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] Help me with trigger for Upgrade

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2010
Messages
312
Create dummy tomes for the shop instead of using the actual upgrades, this way you can check to see what tome was purchased and upgrade your ally accordingly.

Here is an example:
  • Example Trigger
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Dummy_Tome
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current research level of 'Upgrade_You_Want' for 'Your_Ally' Equal to 'Max_Research_Level'
        • Then - Actions
          • Player - Set the current research level of 'Upgrade_You_Want' to ((Current research level of 'Upgrade_You_Want' for 'Your_Ally') + 1) for 'Your_Ally'
        • Else - Actions
 
Status
Not open for further replies.
Top