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

How to get item gold cost?

Level 5
Joined
May 10, 2024
Messages
57
Hi. How to get item gold/lumber cost? I don't see it under getItemIntegerField in GUI and can't find existing functions to use in JASS.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
There isn't a function; you will have to detect the cost yourself. There are a variety of threads on this site about how to get item gold cost; here is a good one with some examples and (probably) working code (despite being 15 years old). Do a little searching and you'll see a bunch of similar threads which you can read over and pick/design a solution that works for you.

Why exactly do you want to do this?
 
Top