• 🏆 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!

Goblin Merchants sell upgrades? {can they?}

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
can neutral passive merchants - eg Goblin Merchants sell upgrades? Im trying but at the moment it does not show up on the merchant
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
It isn't possible with Object Editor.
You can make it with triggers. If you want to, do following:

1. Create custom item for each upgrade (like gold coin)
2. Modify it.
3 Implement this trigger:
  • Upgrades
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to <Upgrade Item 1>
        • Then - Actions
          • Player - Set the current research level of <Upgrade 1> to ((Current research level of <Upgrade 1> for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
        • Else - Actions
      • -------- ---------------- --------
      • -------- New Upgrade --------
      • -------- ----------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to <Item Upgrade 2>
        • Then - Actions
          • Player - Set the current research level of <Upgrade 2> to ((Current research level of <Upgrade 2> for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
        • Else - Actions
 
Status
Not open for further replies.
Top