EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 09-05-2007, 09:33 PM
scyllel scyllel is offline
A Brown Bear
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 10
Default button for multiple instantaneous spells

Is there any reason why you can't have multiple instantaneous spells fire off with a single onpress statement? I tried doing it like this:

Code:
OnPress="target_none target_group_member 1 useability Radiance useability Salvation"
both abilities are instantaneous, but only the first one fires. Is the problem the way the engine works, or the way I've written it?

Thanks,

Scyllel
Reply With Quote
  #2  
Unread 09-05-2007, 11:44 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Do those commands work in a regular game macro? If they do you should be able to put them into a single button.
__________________

Visit Othesus World!
Reply With Quote
  #3  
Unread 09-06-2007, 10:31 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

You might want to separate them by line as well, ie:

Code:
OnPress="target_none 
target_group_member 1 
useability Radiance 
useability Salvation"
Reply With Quote
  #4  
Unread 09-06-2007, 11:00 PM
scyllel scyllel is offline
A Brown Bear
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 10
Default

Thanks for the replies. It looks like I can't even make a macro in game that will do this. The first one fires and thats it. I guess Sony and I have an entirely different idea of the definition of Instantaneous.

If I can figure out how to get multiple commands in a single onpress statement, I might see if I can tweak it by inserting some other quick emote or something in there to separate them.

Maybe there is only certain commands that can be combined in the same statement. Targeting works with abilities, but I don't know if you can pair multiple abilities in a statement at all.

Anybody know?

Scyllel
Reply With Quote
  #5  
Unread 09-06-2007, 11:22 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

You should be able to put two spells into a macro since the second one should just queue. I'm not 100% sure about script buttons though. They can take some testing.
__________________

Visit Othesus World!
Reply With Quote
  #6  
Unread 09-10-2007, 11:04 PM
scyllel scyllel is offline
A Brown Bear
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 10
Default

It seems that certain spells aren't allowed in macros, but the ones I'm working with are.

If I use /target_self to target and don't put a target in the target window of the spell macro line, the macro stops. If I put my character's name in the window next to the spell icon, where it says "target:" it works.

Now I just have to figure out how to translate that information into the UIbuilder.
Reply With Quote
  #7  
Unread 09-11-2007, 12:41 AM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

What do you mean by "the macro stops?" If you put a name into the macro window I think it's pretty much the same as the /useabilityonplayer command.
__________________

Visit Othesus World!
Reply With Quote
  #8  
Unread 09-17-2007, 09:32 PM
scyllel scyllel is offline
A Brown Bear
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 10
Default

Literally, it just doesn't seem to progress; its as if I tried to cast a targeted spell with no target. I push the macro button and nothing happens.

macro looks like this:

/target_self
spell:"Radiance" (has a casting time of instant) Primary [x] Target {blank}
/target_self
spell:"Salvation" Primary [ ] Target {blank}
/target_previous

Radiance fires off on self, but nothing queues up, nothing else fires. I think there is some time that must pass between casts, even if the first spell is "instant". I need to figure out how to insert a pause.
Reply With Quote
  #9  
Unread 09-17-2007, 10:39 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

There isn't any pause command in the macro system. Does the macro work if it's just the two spells?

The reason I ask is that the /target_self command can be a little tricky.

What window are you putting this button into? If you describe exactly what you want to do it's easier to figure out the problem.
__________________

Visit Othesus World!
Reply With Quote
  #10  
Unread 09-17-2007, 10:53 PM
scyllel scyllel is offline
A Brown Bear
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 10
Default

I've been playing with macros most of the evening, and I can't get any two spells to fire in a single macro. The first spell will fire, but the second is ignored; no matter the order.

In a nutshell, that is what I want to do. I want to create a button to fire off two very fast spells with one click. Specifically Radiance, and Salvation. Radiance is an instantaneous reactive heal and Salvation is a cheat death and heal spell. Both are useful really only in that last nano second before a character dies, or gets saved if you are lucky and/or fast enough. If radiance works, the character lives, if it fails, Salvation should prevent the death and heal a good amount. The useful window for them both is quite small, so I wanted to combine them into a single button attached to the groupmember window.

It seems macros are limited to one spell. I get a similar result if I put the commands into an onpress statement for a button. I suspect maybe the limitation is the same.
Reply With Quote
  #11  
Unread 09-17-2007, 11:39 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Start with the simplest thing you can and work your way from there. Did you try just the two spells in a macro and nothing else? I use two spells in macros all the time.
__________________

Visit Othesus World!
Reply With Quote
  #12  
Unread 09-20-2007, 09:00 PM
scyllel scyllel is offline
A Brown Bear
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 10
Default

Good call. Taking everything else out of the macro let the spells fire off. Now I'm back to the drawing board with my new knowledge. The project is polishing up though. (not sure I like it, but it is starting to look like and do what I intended)
Reply With Quote
  #13  
Unread 09-20-2007, 10:05 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Ok, so that solves that problem. What window are you planning on putting this button in? If you want to put it in the player window it will target you automatically when you click anywhere in the window, with one complication. I wrote an explanation when I was making a player window for someone here:
http://www.eq2interface.com/forums/s...ead.php?t=8066
__________________

Visit Othesus World!

Last edited by Othesus : 09-20-2007 at 10:17 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 02:42 PM.


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