Can someone tell me how to use it with units stats? How to refer to number of starting HP of specific unit? Is it possible? Can it refer to other stats aswell?
edit:
btw. Is it notmall that after clcking "edit" while im editing buttons' tooltips (the edit button with mouseover message "opens a text editor blablabla") that nothing happens?
edit:
By enablind "raw data" function in editor i was able to gather name of the statistic and so far tryied such lines:
Do you have any idea where could i look for correct code? Cant find any existant button in galaxy editor that woudl refer to unit stats. But they do refer to stats of behaviors and effects... so it should be possible.
Woo :D Trough freaking blind walk trough the raw data names and comparing with other tooltips i figured out, that its:
<d ref="Unit,Marine,LifeMax"/>
:D Thats the text right after CUnit_ in raw data table
edit:
Now its time to go further, and to replace "Marine" with some code that will return type of trained unit by ability to which this button links... If someone gonna give me idea i will give you candy! 2 candies even!
edit:
If there is no better possibility, i could call each train buttons same way as the units they woudl produce, and then we coudl input somehting like this:
<d ref="Unit,AlertName,LifeMax"/>
But without proper indication for the game that its this button's alert name, and not unit called "AlertName", it wont work... How do i indicate such thing? Please help, it goes beyond my knowledge about this code.
If you dont understund what im tryign to achieve, i will show you example of not working code (to noones suprise ;)), with the same idea im trying to achieve:
Thats mean, putting reference into reference :) but it wont work becouse of doubled tags.
Why am i tyring to achieve it? Becouse then i would be able to create one template for plenty for plenty of tooltips where i wont need to change "Marine" to any other button im trying to give this tooltip to.
I have encountered such reference code in tooltips. For example:
<d ref="Effect,HurricaneMissileDamage,Amount * Effect,HurricaneMissileDamagePersistent,PeriodCount"/>
Can someone tell me how to use it with units stats? How to refer to number of starting HP of specific unit? Is it possible? Can it refer to other stats aswell?
edit:
btw. Is it notmall that after clcking "edit" while im editing buttons' tooltips (the edit button with mouseover message "opens a text editor blablabla") that nothing happens?
edit:
By enablind "raw data" function in editor i was able to gather name of the statistic and so far tryied such lines:
<d ref="Unit,Marine,CUnit_LifeStart,Amount"/>
<d ref="Unit,Marine,CUnit_LifeStart"/>
<d ref="Unit,Marine,Life"/>
<d ref="Unit,Marine,Life_Starting_Amount"/>
<d ref="Unit,Marine,LifeStartingAmount"/>
to no avail... it all returns "0" in tooltip :/
@Azzaaer: Go
Do you have any idea where could i look for correct code? Cant find any existant button in galaxy editor that woudl refer to unit stats. But they do refer to stats of behaviors and effects... so it should be possible.
@Azzaaer: Go
Woo :D Trough freaking blind walk trough the raw data names and comparing with other tooltips i figured out, that its:
<d ref="Unit,Marine,LifeMax"/>
:D Thats the text right after CUnit_ in raw data table
edit:
Now its time to go further, and to replace "Marine" with some code that will return type of trained unit by ability to which this button links... If someone gonna give me idea i will give you candy! 2 candies even!
edit:
If there is no better possibility, i could call each train buttons same way as the units they woudl produce, and then we coudl input somehting like this:
<d ref="Unit,AlertName,LifeMax"/>
But without proper indication for the game that its this button's alert name, and not unit called "AlertName", it wont work... How do i indicate such thing? Please help, it goes beyond my knowledge about this code.
If you dont understund what im tryign to achieve, i will show you example of not working code (to noones suprise ;)), with the same idea im trying to achieve:
<d ref="Unit,<d ref="This,ButtonName"/>,LifeMax"/>
Thats mean, putting reference into reference :) but it wont work becouse of doubled tags.
Why am i tyring to achieve it? Becouse then i would be able to create one template for plenty for plenty of tooltips where i wont need to change "Marine" to any other button im trying to give this tooltip to.