HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[AI] Is there a way to get a value of a variable in the script ?

11-10-2008, 12:48 PM#1
Troll-Brain
For example this function should be useful in a trigger :

common.ai
Collapse JASS:
native GetUnitWoodCost      takes integer unitid                        returns integer

I know there is a system in this forum, but if we "simply" could get an .ai variable in the map script it would be great.
11-10-2008, 01:04 PM#2
moyack
With a modified common.j including those natives.
11-10-2008, 01:16 PM#3
DioD
Use price server AI, there is no *easy* way.
11-10-2008, 02:12 PM#4
Troll-Brain
Quote:
Originally Posted by moyack
With a modified common.j including those natives.
+ 152 ko for the map yeah :p
Or i could reduce it if i remove comments and spaces but ...

So there is no solution to get an .ai value of variable ?
11-10-2008, 02:24 PM#5
Vexorian
you can shrink common.j by also reducing argument names to something short, you can also change the handle types definitions to short names (but then you need to replace these names everywhere)

hmnn I should probably add this to the optimizer as an option.
11-10-2008, 02:26 PM#6
Troll-Brain
Good idea.
I hope you will do it.