EQ2Interface.com
Search Downloads


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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Unread 09-20-2010, 10:45 AM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

With how finicky the UI script parser is with doing multiple things in a single statement, I almost never try anymore.

If you can do something like:
result = bool1 ? val1 : bool2 ? val2 : bool3 ? val3 : bool4 ? val4 : badresult
... it's news to me. I'd personally just make it multiple lines of code like:
result = badresult
result = bool1 ? val1 : result
result = bool2 ? val2 : result
result = bool3 ? val3 : result
result = bool4 ? val4 : result


I've been disillusioned by the scripting engine so much that I don't try to write elegant code in it at all. I just do what I know will work and leave the headaches alone. If I really need it to be one line, I just replace every visual newline with the XML entities for new lines, "
". Otherwise known as, "\r\n".
Reply With Quote
 



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 08:32 PM.


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