EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-24-2009, 11:30 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default Hey is there any way to do this?

Is there any way to do something like

if Text='Tyrannical Mind' or Text='Haruspex' or Text='Spell Lash' than Parent.Frame1.DynamicData='/Spellblahblah' if not than Parent.Frame1.DynamicData=''

If you can't do this is there any other way around?
__________________
May Jesus Have Mercy On Us
Reply With Quote
  #2  
Unread 01-24-2009, 11:59 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

do an IF check for each, and if true, set the dynamic data to what you want.

COND=Text==text1
DynamicData=Text?data1:data2

COND=Text==text2
DynamicData=Text?data1:data2

COND=Text==text3
DynamicData=Text?data1:data2
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 01-25-2009 at 12:05 AM.
Reply With Quote
  #3  
Unread 01-25-2009, 12:02 AM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Quote:
Originally Posted by Drumstix42 View Post
Set your DynamicData to the ELSE data first (if you have false string compares)

then check the text against your 3 strings.

do an IF check for each, and if true, set the dynamic data to what you want.
Can you put show through code, I don't really follow you.
__________________
May Jesus Have Mercy On Us
Reply With Quote
  #4  
Unread 01-25-2009, 12:05 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Edited my post above. Should be simpler that way ^
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #5  
Unread 01-25-2009, 09:45 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

You can also do it in a single conditional, see the conditionals sticky here.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 01-25-2009, 12:41 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Both work. To be honest though, gm9's is more easy to understand and easier to put together.

So if I want to do 3 :
w=(a == 8)
x=(a == 10)
y=(a == 5)

COND=w || x || y
z=COND ? true : false

One last question. What dos the a == _ represent? Sorry If I ask so many questions, it has to make sense in my brain for me to understand.


Oh and thanks for the link. I've been linked there a few times, but this time I'm going to put it on my favorites.
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 01-25-2009 at 12:49 PM.
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 09:48 AM.


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