• 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.

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