switch depending on unit type of unitpicked unit
if (drone)
set unitpickedname = drone
there might be a way to return as the name of the unit but i don't have editor open right now and i'm too lazy to do so right now, i'll edit this in the morning and post a new reply if i find an easier method.
I'm a triggerer
I can't make awesome terrains
I dabble in data
I suck at poems
That is why i do haiku
i suck at them too :(
marktronic Regular ShmoeI am trying to get the player's army composition (e.g. 10 drones, 1 overlord, 3 larva, etc.) written out to a bank file when a new unit is created. What I have currently is pasted below. My current issue is I'm only able to get the total number of units, and I'm not able to get the unit name/identifier written out. Ideally, I'd be writing data out:
"drones" : 10 "overlord" : 1 "larva" : 3
Can anyone offer some direction on how to get this working properly? It's not critical I get the actual unit name. So long as it's some unique identifier, I can figure out what those identifiers are and then create a mapping between those and "human-readable" names farther down in my stack.
Many thanks!