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

Item appears in ground, not inventory

Status
Not open for further replies.
Level 3
Joined
Feb 16, 2007
Messages
31
So, I got an item for shop that is based on the gold coins, and you can buy it from shops, but when you buy it, it appears on ground, not in the heros inventory, and thus people can steal it. Whats wrong with it?
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Just make the items dummy-items and use
  • Events
    • Unit - A Unit acquires an item
  • Conditions
    • ((Triggering Unit is a hero) equal to true
  • Actions
    • If (Item being manipulated) equal to *dummyitem 1*
      • Then do: Hero - Create *item1* and give it to (Triggering Unit)
        • Item - Remove (item being manipulated) from (Triggering unit)
      • Else do: IF (item being manipulated) equal to *dummyitem2*
        • Then do: ...
The actual trigger may come out different since i'm about 300km away from home..
 
Level 3
Joined
Feb 16, 2007
Messages
31
Discovered, the shop missed some skill (not sure what it was, i think it was select user or so) thanks anyway.
 
Status
Not open for further replies.
Top