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

[General] how to i do a item require other item (not upgrades and units)

Status
Not open for further replies.
Level 2
Joined
Jan 8, 2012
Messages
12
how to i do {itemA} require {itemB} to purchase? (not upgrades and units, itens):goblin_jawdrop:
 
Last edited:
Level 17
Joined
Nov 13, 2006
Messages
1,814
how to i make {itemA} require {itemB} to purchase? (not upgrades and units, itens):goblin_jawdrop:

u cant, u just can remove from hero and give back the gold....

(if u store every purchasable item type&gold price to variable then u can give back the correct value and max u can add remove from market and maybe that refresh the stock interval if start interval is 0 :/)
 
Level 2
Joined
Jan 8, 2012
Messages
12
man, i want to ITEM A needs ITEM B to be puchesased! i to i do it??!

say to me too taths conditions i need to do it
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Examples:
  • Any unit owned by the same player as the buyer needs to have an item of that type in inventory.
  • All units owned by the same player as the buyer need to have an item of that type in inventory.
  • Somewhen before, the player needs to have bought such an item.
  • Somewhen before, the player needs to have killed such an item.
  • The player needs to have a shop offering that type of item.

Adiktuz's example does not work with requirements as requirements are player-related.
 
Level 2
Joined
Jan 8, 2012
Messages
12
aww, now i unsderstanded sorry ^^ (but this topic dont ended Ò.ó )
i want to HERO to buy ITEM A needs ITEM B in inventory... this helped you?


Examples:
  • Any unit owned by the same player as the buyer needs to have an item of that type in inventory.
  • All units owned by the same player as the buyer need to have an item of that type in inventory.
  • Somewhen before, the player needs to have bought such an item.
  • Somewhen before, the player needs to have killed such an item.
  • The player needs to have a shop offering that type of item.

Adiktuz's example does not work with requirements as requirements are player-related.
the number one note, Any unit owned by the same player as the buyer needs to have an item of that type in inventory.
 
Status
Not open for further replies.
Top