• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Get research price

Status
Not open for further replies.
Use jasshelper to declare your own natives from the common.ai functions.

put this in your map header (jasshelper must be enabled)
native GetUpgradeGoldCost takes integer id returns integer
native GetUpgradeWoodCost takes integer id returns integer
Sorry I'm not very good at jass but, what do you mean with enable jasshelper? I already used some custom script and all worked fine without enabling anything
 
You might be able to track research prices by using your own cost formula for each and applying it to a research tracking trigger that knows the base price and can use that along with number of researches.
In my map there are a lot of researches but I think this is the best option and the most easy too and it requires only a basic knowledge of GUI. Thank you all for helping me +rep to all
 
if you have jassnewgen pack or some other editor like sharpcraft, you can easily get the upgrade gold cost using the native GetUpgradeGoldCost/GetUpgradeWoodCost.

native GetUpgradeGoldCost takes integer id returns integer
 
Status
Not open for further replies.
Back
Top