• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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
 
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.
Back
Top