HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

CodeMaker questions

03-15-2008, 05:01 PM#1
Magentix
Edit:
I solved my problem by coverting CodeMaker into a vJASS version and reading the readme a few times more :)



Old message:
Hey Vex,

I'm thinking of using your codemaker system just to save integers.
Now, the map contains a lot of triggers, but which ones do I need to implement into my map to have it work?

Also: suppose I try to save this:
Code:
1) UnitClass: integer that ranges from 1 - 6
2) UnitID: integer to the likes of 'h000'
3) UnitLevel: integer that ranges from 1 - 50

What "set"s would I need to do?
(Since you got me confused with making "set udg_codemaker_vals[0]" an array... why not just a global?)

Thanks in advance.


P.S.: Is there a vJASS version of this?
Libraries with initializers would look so much better than the current InitTrig stuff and map header placement...


EDIT:
Would this do?

Collapse JASS:
set udg_codemaker_vals[0] = 3
set udg_codemaker_vals[1] = 1
set udg_codemaker_vals[2] = 'n000'
set udg_codemaker_vals[3] = 9
set udg_codemaker_size[1] = 3
set udg_codemaker_size[2] = 31
set udg_codemaker_size[3] = 6