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
  #1  
Unread 12-29-2004, 04:35 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default Slash commands with OnPress, etc

ATTENTION!
IMPORTANT UPDATE!


OnHide="show_window=(MainHud.stat01) show_window=(MainHud.stat01)"

I stuck this in the Clock window and got Ellyana's stat box to show up ON LOAD! Yay!

(UPDATE NOTE: At the moment it only works in the MainHUD root page on /loadui, not when the game loads. Sorry!)

The key is that show_window works as a game setting as well as a slash command, so = works. But you also have to have it execute TWICE because the first time it just gives the Clock window a property called show_window instead of changing the game setting.

Just thought everyone would like to know. We can now show ANY custom window without the need for the user to create a /show_window macro.



UPDATE!
March 02, 2005

Getting commands like /say and /gsay to work:

OnPress="say='This is a test.' say='This is a test.'"

The two executes much match exactly, and you must do each execute twice.
So, for example, if you wanted to make a button on the player window that casted a ward and announced it (out of macro slots? ), you would do something like this:

OnPress="gsay='Warding %t!' gsay='Warding %t!'
useability='Demonstration of Faith' useability='Demonstration of Faith'"



Bug to be aware of.

If you do a script with Anything=Somethingelse, and "Somethingelse" is a command, then you may have problems. Examples:

OnPress="mood='happy' mood='happy'"

OnPress="somevalue=(Some math thing that results in the number 2)"

The first will execute /happy instead of /mood happy because /happy is a command. This can NOW be worked around!

OnPress="'mood happy=' '"




If you are in two or more chat channels, then the second script may give the message Usage: /tellchannel <channelname> <message> because it thinks you're trying to talk in the second chat channel (/2 Hello!). I'm not certain how to work around it or why it started showing up with math calculations a patch or two ago.








*Discussion below*

This should have been painfully obvious, I guess...

The script functions OnHoverIn, OnPress, OnHide, etc., take regular old slash commands.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 04-06-2005 at 11:18 PM.
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 10:17 PM.


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