I want to be able to grab the integer value of an array, associated with a given unit. I figure GUI isn't up to handle this, as there are no options to GetArrayInteger or whatever it might be called in custom script.
I don't know anything about JASS, but it seems to me that I should be able to do the following with it.
Associate a unit with his array number.
So I could go Set Variable(tempinteger) = arrayinteger of Unit
And even,
Set Variable(integer) = arrayinteger of (random unit within unitvariable, or even unitgroup)
So if a variable array has the unit footman_0001, then the trigger can find the footman and take the value of the particular array integer it is assigned to.
Could this be done with a Where?
I don't know if I've explained that too well because I'm used to scrolling charts, but hopefully you can see what I mean. I just want to be able to get the integer of the array number that unit happens to be put into at the time. Would that be parameter? All I know about JASS is what I just read last night, prior to that I'd never even see a code script.
But Dad does know and he was talking about a Where sort of thing.
Where unit = something, then take action. I have a vague notion of it, but could this Where function find any specific unit associated with any of the variables or variable arrays?
If you know anything about this please let me know. And ideally, provide me with a means or example to do it, to the best of your JASS knowledge, and I'll muddle through the rest somehow.
Appreciated.
I don't know anything about JASS, but it seems to me that I should be able to do the following with it.
Associate a unit with his array number.
So I could go Set Variable(tempinteger) = arrayinteger of Unit
And even,
Set Variable(integer) = arrayinteger of (random unit within unitvariable, or even unitgroup)
So if a variable array has the unit footman_0001, then the trigger can find the footman and take the value of the particular array integer it is assigned to.
Could this be done with a Where?
I don't know if I've explained that too well because I'm used to scrolling charts, but hopefully you can see what I mean. I just want to be able to get the integer of the array number that unit happens to be put into at the time. Would that be parameter? All I know about JASS is what I just read last night, prior to that I'd never even see a code script.
But Dad does know and he was talking about a Where sort of thing.
Where unit = something, then take action. I have a vague notion of it, but could this Where function find any specific unit associated with any of the variables or variable arrays?
If you know anything about this please let me know. And ideally, provide me with a means or example to do it, to the best of your JASS knowledge, and I'll muddle through the rest somehow.
Appreciated.