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