View Single Post
  #2  
Unread 03-05-2007, 11:43 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

A couple threads that cover relevant topics.
Conditionals
String contatination

You can perform simple math on any string with the usual operators (+, -, *, /). Keep in mind that all strings are coverted to numbers with 3 decimal places when performing math. Many UI element atributes won't accept numbers with float and there curently is no known way to remove float with SOEScript. Similarly there is no known way to split comma seperated values.

Regarding your specific project, any of the player mods that show a numerical value for health and power should give you a good idea how to get the number piped to the text atribute of an element.
Reply With Quote