 |
cachew Novice
Joined: 10 May 2001 Posts: 39 Location: USA
|
Posted: Sun Aug 19, 2007 9:25 am
Command Buffer Display |
Is there some way to display the command buffer?
The following is what I would like to try to accomplish and I can't seem to figure a way to do it.
I would like to display a running comand buffer. I am playing a mage so I usually stack up a list of spells and I would like to see where in that queue the game has gotten to. As the spells are cast the next spell (or any command for that matter) will move to the top of the list.
I would like to try to display it either on a button or in a small window inset into my current toolbar.
I have played with the #history and that isnt exaclty what I wanted and I dont want it in a seperate window since I spend all my time staring at my command bar I would like it immediately visible.
Anyone have any ideas as to how to accomplish this? or is this even feasible? |
|
_________________ Christopher Chew |
|
|
 |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Aug 19, 2007 12:54 pm |
So you want a FIFO queue that %pops off the most recently executed command?
So if you send the commands. Smile;Frown;Say Hi
You get the following?
Smile
Frown
Say Hi
When the game executes a command the list removes it?
You smile.
Frown
Say Hi
You frown.
Say Hi
You say, "Hi."
Like that? |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Aug 19, 2007 1:12 pm |
The trouble with doing this is that since every command is a potential member in the queue, you need to have a trigger on the success text of every command you could enter so the script can remove it from the list. You could use one trigger for this, but the pattern would be huge.
I'd suggest a simpler script that only tracks spell casts. Something like this:
#alias cast {#additem SpellQueue {%-1};~cast %-1}
#trig {^{You cast|You fail casting}} {#delnitem SpellQueue 1}
Then to display the contents of the list you can use %expandlist or #forall |
|
|
 |
cachew Novice
Joined: 10 May 2001 Posts: 39 Location: USA
|
Posted: Sun Aug 19, 2007 6:39 pm |
Exactly, a FIFO queue. You stated it much more efficiently than I.
With the #forall or %expandlist could there be displayed as the text on a button using the buttons capation? and have it update the a queue fluctuates? |
|
_________________ Christopher Chew |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Aug 19, 2007 6:56 pm |
%expandlist can be used that way, yes - just make sure the button's big enough!
You could also have a series of buttons and use something like this as the caption
%if(%item(@SpellQueue,1),%item(@SpellQueue,1),"...") |
|
|
 |
cachew Novice
Joined: 10 May 2001 Posts: 39 Location: USA
|
Posted: Sun Aug 19, 2007 7:08 pm |
Thanks so much, that is a great place for me to begin. =)
|
|
_________________ Christopher Chew |
|
|
 |
|
|