I have a textbox that follows the cursor and when I hover over an item sprite with some instance variables I want it to display these. It does work but I also want to exclude any variables that is 0 or less. So if an item has 3 damage and 0 lifesteal it should only display the damage text.
How my action looks like
iteminfo Set text to
itemtemplate.name&
"Health="&itemtemplate.health&
"Armor="&itemtemplate.armor&
"Damage="&itemtemplate.damage&
"Regeneration="&itemtemplate.reg&
"Thorns="&itemtemplate.thorns&
"Lifesteal="&itemtemplate.lifesteal&
"Value="&itemtemplate.value