Is it possible to use any variables, functions or methods in fields in the data editor? For instance use the <Name of Unit> in a text field or something?
The only thing I can think of, would be indirectly doing it by using the Catalog function.
You can use it to read and write any value you like. Some restrictions are that you can't add new values (for example new levels,...) as those arrays need to be preset in the data editor.
Also it seems to be impossible to move or change position of bottoms on the command card.
Directly putting in something like <hfoo,Name> isn't possible to my knowledge ;)
Is it possible to use any variables, functions or methods in fields in the data editor? For instance use the <Name of Unit> in a text field or something?
I have just recently kidna done something similar ..... what you end up needing to do is create your own validators. Validdators can do a whole slew of checks against units or units in area around a point.... bad part is they have to be either true or false.
The good part is that you can make validators for a ton of stuff and I cant really comment further on validators because im just learning what i can do with them now.
Once you have that down you can generally give effects/ abilities more then 1 validator that must return true for the ability/effect/behavior/ to function.
For example I made a validator that checks if there are any units of the type "marine" in an aoe radius of 10 from my unit with the behavior.... this then returns true and does an effect for the behavor with the unit.... if it returns false it doesnt do the effect.
Is it possible to use any variables, functions or methods in fields in the data editor? For instance use the <Name of Unit> in a text field or something?
@VeridianEntropy: Go
bumpage, would be awesome if I could do this
The only thing I can think of, would be indirectly doing it by using the Catalog function. You can use it to read and write any value you like. Some restrictions are that you can't add new values (for example new levels,...) as those arrays need to be preset in the data editor. Also it seems to be impossible to move or change position of bottoms on the command card.
Directly putting in something like <hfoo,Name> isn't possible to my knowledge ;)
@Rushhour: Go
poop, oh well
Miscellaneous Map Development is the wrong forum for this, moving it to Data.
I have just recently kidna done something similar ..... what you end up needing to do is create your own validators. Validdators can do a whole slew of checks against units or units in area around a point.... bad part is they have to be either true or false.
The good part is that you can make validators for a ton of stuff and I cant really comment further on validators because im just learning what i can do with them now.
Once you have that down you can generally give effects/ abilities more then 1 validator that must return true for the ability/effect/behavior/ to function. For example I made a validator that checks if there are any units of the type "marine" in an aoe radius of 10 from my unit with the behavior.... this then returns true and does an effect for the behavor with the unit.... if it returns false it doesnt do the effect.