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

Get research price

Status
Not open for further replies.
Level 6
Joined
Jun 4, 2017
Messages
172
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
 
Level 6
Joined
Jun 4, 2017
Messages
172
Get WEX or JNGP as your editor. For JNGP, switch to Vexorian JassHelper (usually it sets Cohadar as default)
Declare (write) the natives given by Jampion in the map header (the top of trigger editor).
Sorry but I just don't understand what you are saying because I don't know jass or vjass I only know simple custom scripts
 
Level 6
Joined
Jun 4, 2017
Messages
172
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
 
Level 4
Joined
Jul 13, 2017
Messages
30
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.
Top