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

Status
Not open for further replies.
Level 8
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