However, since it's not possible to use nested records (structs) in most native gui functions, I use script for the "base[b].type[t].unittype[Spawners][v]" section:
I don't know what to put in the ???. Function parameters are "lp_", global variables "gv_", and so on and so on, but what about enumerations? I've been stumped on this for a while now.
if im following s3rius on what hes saying then i do that too. if im trying to understand the scripting for 'units in region matching conditions; alive, not missilies etccc' ill;
1) make something that does that through a basic trigger like a 'pick units' or something that allows me to put in the units in region matching conditions etc...
2) goto the general tab and 'custom script' and put 'as;ldfkjasdf' w/e that will error it.
3) click run and it will show me where the error writing is, and right above that is the coding for the trigger part i wrote refering to how to write out 'units in region matching condition'
4) copy/paste the part youre wanting to your script and delete the 'as;ldkjf' custom script function
i think this is the same thing as s3rius is saying but my way may be for the more 'noobs' as it auto finds directly the part youre wanting to look at. i know for me i just started custom scripting shortly ago and it was daunting looking at all that without feeling like i knew exactly what it was all refering to. hope this helped, GL
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
What I'm trying to do is this:
My enum (preset):
However, since it's not possible to use nested records (structs) in most native gui functions, I use script for the "base[b].type[t].unittype[Spawners][v]" section:
I don't know what to put in the ???. Function parameters are "lp_", global variables "gv_", and so on and so on, but what about enumerations? I've been stumped on this for a while now.
You can simply find this out by yourself.
Create an enumeration in GUI, then open the script editor (F11 or Shift+F11 I think) and search for the enum in the script.
if im following s3rius on what hes saying then i do that too. if im trying to understand the scripting for 'units in region matching conditions; alive, not missilies etccc' ill;
1) make something that does that through a basic trigger like a 'pick units' or something that allows me to put in the units in region matching conditions etc...
2) goto the general tab and 'custom script' and put 'as;ldfkjasdf' w/e that will error it.
3) click run and it will show me where the error writing is, and right above that is the coding for the trigger part i wrote refering to how to write out 'units in region matching condition'
4) copy/paste the part youre wanting to your script and delete the 'as;ldkjf' custom script function
i think this is the same thing as s3rius is saying but my way may be for the more 'noobs' as it auto finds directly the part youre wanting to look at. i know for me i just started custom scripting shortly ago and it was daunting looking at all that without feeling like i knew exactly what it was all refering to. hope this helped, GL