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

Quick Item Next-to-shop-spawn Issue

Status
Not open for further replies.
Level 12
Joined
May 9, 2009
Messages
735
I tried searching for a quick answer to this but I didn't find anything. I have an item that is added to a shop through a trigger and for some reason it spawns outside the shop when purchased like a level tome when hero has max levels. But the hero can pick it up no problem afterwards.

Very odd. I want the item to appear in the hero's inventory like normal. Anyone know anything about this?
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
Do you mean when you try to add an item to a shop using trigger it's shows outside the Shop? Well if that's the problem? Then you probably forgot something inside the variable function of triggers.

Also make sure there is enough space inside the market and the hero inventory
 
Level 12
Joined
May 9, 2009
Messages
735
No. The item is inside the shop. But when I buy it it spawns outside like a xp tome does when you buy it with a level 10 hero.

I have other items in the shop which aren't added by the trigger, they appear in the inventory fine but this one items appears outside the shop and not in the inventory.
 
Level 12
Joined
May 9, 2009
Messages
735
The item is based off staff of teleportation. Yes, the hero has an invenotry. Like I said before, the shop already has items inside it to sell which are added through the object editor. This one item is added through a trigger, it is added this way so it can be removed later on. This item, unlike the other items does not get bought into a hero's inventory but just appears next to the shop.

The other items are acting like normal. They display an error message when no hero is nearby to buy them and the player attempts to buy them anyway. The trigger-added-item just gets added outside the shop no matter the hero nearby...

I tested some more and looks like adding "select hero" ability to the shop fixes this issue. Normal item buildings like Arcane Vault usually do not have this ability but the marketplace does...
 
Last edited:
Status
Not open for further replies.
Top