EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-05-2007, 09:47 AM
dx2 dx2 is offline
A Darkpaw Brute
Interface Author - Click to view interfaces
 
Join Date: Nov 2005
Server: Splitpaw
Posts: 43
Default Working with values

I wonder if there is a stack of commands in the ui system which can be used for evaluation of specific numeric data like health or power values. Where can I find more information about that topic? To be more precise: For Example I want to create a function-like window which I want to sum up the total resistance values. Any idea?
Reply With Quote
  #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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:14 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI