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

Scripted Shop

Status
Not open for further replies.
Level 6
Joined
Oct 1, 2012
Messages
166
Heloes Hive Workshop

I have a slight problem. I want to make a shop selling skills, but depending on hero attributes. Sort of. A simple example would be a shop selling Dodge if Agility is above 50, but the skill wouldn't show up there if hero's Agility was at smaller value.

So, my question is, is there a possibility to add items to a shop? Function "AddItemToStock()" doesn't seem to work, so I guess it just increases count of offered goods and not new goods.

I couldn't find any answer here, as googling "shop" and "Hive Workshop" at once doesn't work at all :D

Thanks in advance.
 
Level 6
Joined
Oct 1, 2012
Messages
166
Whoah... everything I needed was adding "Sell items" ability to my shop T.T

Thanks a lot :D
 
Level 6
Joined
Oct 1, 2012
Messages
166
Since nobody blocked the topic yet, I might have a quick question here - is there a way to reduce lag when nearing a shop? When a hero gets to it, it takes about 2 sec to be able to buy anything. I searched in "Choose hero" skill, in game constants and in shop stats and found nothing.

My map is to be kinda dynamic, so 2 secs are quite a lot. Thanks in advance.
 
Status
Not open for further replies.
Top