Unit Group - Pick each unit in BlahBlahYourUnitGroup and do (Actions)
Actions
Variable - Set score = (Integer((Value of Units (String((Unit type of (Picked unit)))) "ScoreKill" for player Any Player)))
Which I suppose I should translate...
That's setting Score's value: Convert String to Integer (Catalog Field Value Get:
Catalog: Units
Entry: Convert Game Link to String
Game Link: Unit Type of Picked Unit
Field Path: "ScoreKill" (you gotta type this in Value)
Yea it makes sense, but I've tested the trigger and nothings happening, Its not gathering the intended value of picked units and adding to the Variable.
The trigger may be working but the value im after may not be correct, Is that string that you have provided the value in the Data editor listed under Stats/Score - kill if so should it be "Scorekill" or "Score - Kill".
I thank you for your reply regardless as i posted this on every Galaxy editor forum i could find to no avail and your reply was the only one that helped me get anywhere.
Thanks for clarifying xhatix, and a further thank you Xenrathe. The trigger is working, I just got to figure out why the figure is doubling lol.
I got like 7 variables flying back and forth.
EDIT: I dont get it, when I test the trigger I kill 17 Marines worth 100 under ScoreKill and the score given is 3400 not 1700 which Im pretty sure is the correct figure.
Variable - Set Sacrifce number[(Owner of (Picked unit))] = (Integer((Value of Units (String((Unit type of (Picked unit)))) "ScoreKill" for player (Owner of (Picked unit)))))
EDIT: Ok I added "/ 2" and it works perfectly now. I guess units are worth twice as much when using this trigger.
Title says it all, is that possible? If so how?
@MapCrafter: Go
That's a sorta bizarre question. Isn't the unit score of a picked unit already an integer?
I cant find what your refering to. Im after Kill Score of a unit/any unit.
@MapCrafter: Go
Oh I see what you're asking... :
Unit Group - Pick each unit in BlahBlahYourUnitGroup and do (Actions)
Actions
Variable - Set score = (Integer((Value of Units (String((Unit type of (Picked unit)))) "ScoreKill" for player Any Player)))
Which I suppose I should translate...
That's setting Score's value: Convert String to Integer (Catalog Field Value Get:
Catalog: Units
Entry: Convert Game Link to String
Game Link: Unit Type of Picked Unit
Field Path: "ScoreKill" (you gotta type this in Value)
Make sense?
Yea it makes sense, but I've tested the trigger and nothings happening, Its not gathering the intended value of picked units and adding to the Variable.
The trigger may be working but the value im after may not be correct, Is that string that you have provided the value in the Data editor listed under Stats/Score - kill if so should it be "Scorekill" or "Score - Kill".
I thank you for your reply regardless as i posted this on every Galaxy editor forum i could find to no avail and your reply was the only one that helped me get anywhere.
@MapCrafter: Go
correct Field paths can be retrieved through "RawData" mode (ctrl+d in GE)
ie CUnit_ScoreKill - leave away CUnit_ and it's the correct path
Thanks for clarifying xhatix, and a further thank you Xenrathe. The trigger is working, I just got to figure out why the figure is doubling lol.
I got like 7 variables flying back and forth.
EDIT: I dont get it, when I test the trigger I kill 17 Marines worth 100 under ScoreKill and the score given is 3400 not 1700 which Im pretty sure is the correct figure.
Variable - Set Sacrifce number[(Owner of (Picked unit))] = (Integer((Value of Units (String((Unit type of (Picked unit)))) "ScoreKill" for player (Owner of (Picked unit)))))
EDIT: Ok I added "/ 2" and it works perfectly now. I guess units are worth twice as much when using this trigger.