• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Item Upgrade shop - Help

Status
Not open for further replies.
Level 12
Joined
Aug 3, 2005
Messages
745
What would be the easiest way to do this.

A building with a hero inventory if 1 slot.

You place your item inside and then an use the buildings ability to upgrade.

The cost depends on the base cost of the item. So e.g.

500gold Item - costs 500 to upgrade
700gold Item - costs 700 to upgrade
etc. etc.

How can I do this with triggers so its made clear how much it will cost to upgrade and make it so it only works if player has sufficient gold?

thx
 
Level 10
Joined
Jul 2, 2004
Messages
690
why, the EotA way of course. when the hero puts an item into the altar, create floating text telling them the price to upgrade. if they use the "Temper" ability, then check if player has enough gold. if it's true, remove the item and give a new one, if not, display text to player: "Need more gold."
 
Status
Not open for further replies.
Top