|
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Tue May 18, 2004 10:46 am
New window - I'm kinda new at this |
I have a scenario I was wondering if some expert could help me with.
When I fight, I get hit with a lot of poisons. I would like to grab the text from the poisons I am hit with and put it in a new window, so that I can see which ones I am afflicted with.
Can Zmud grab text from the main window and APPEND a new window? Not open a new window every time, but append the same window. And also, as I cure my afflictions, I would like the text to go away, so - can Zmud also remove lines from this window on trigger?
I would really appreciate any help on this. I've just started using Zmud, and I'm having some difficulties :) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue May 18, 2004 11:28 am |
The way to do this is with the status window and a list variable for your afflictions.
#VAR Afflicted {Example1|Example2}
#STWIN {%expandlist(@Afflicted,%cr)}
You can then use #ADDITEM and #DELITEM in your triggers to update the window.
#ADDITEM Afflicted {Example3}
#DELITEM Afflicted {Example1} |
|
|
|
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Tue May 18, 2004 12:32 pm |
Hey, remember now, I'm new to this :)
Ok the first one with the #VAR - Does that create a variable named Afflicted? If so, what is example1 and 2?
The second line is beyond me.
Please, easy does it :) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue May 18, 2004 9:42 pm |
All of those are meant to be used at the command line. Simply copy and paste the first 2 then hit enter.
#VAR Afflicted {Example1|Example2}
#STWIN {%expandlist(@Afflicted,%cr)} "" "Affliction"
Now the first line creates a variable with contents of "Example1|Example2". The "|" functions as a list seperator in zMud allowing all the list commands to be used with the variable.
The second defines a status window setting. I add somemore stuff to it since the original didn't work in my full configuration. Looks like a minor hitherto unknown quirk. It formats the list into lines.
The other 2 are to provide you with examples of updating the variable add how the window will automatically update. Just copy them into the command line and hit enter. You can do them singlely or both at once. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue May 18, 2004 10:31 pm |
quote: Originally posted by Leontes
Hey, remember now, I'm new to this :)
Ok the first one with the #VAR - Does that create a variable named Afflicted? If so, what is example1 and 2?
The second line is beyond me.
Please, easy does it :)
The help files for those provide a few examples and explain what they do
#HELP Additem
#HELP Delitem
#HELP Variable
#HELP STWIN |
|
|
|
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Wed May 19, 2004 8:07 am |
Thanks guy, I got it now.
Heh, I'm not sure I'm going to use it after having tried it and realized how much work it would be to get everything in there.
Can I just ask one more thing - How can I get a trigger to trigger on:
"You are drowsy" (without the "" in-game)
and not trigger when this text appears:
"Mr. Triggerbreaker says: You are drowsy" |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed May 19, 2004 8:37 am |
The pattern matching help file will help you alot it explains how to anchor triggers
^ match start of line
$ Match end of line
#TR {^You are drowsy.$} {#SAY Drowsy} |
|
|
|
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Wed May 19, 2004 9:45 am |
Ah, I get it. Thanks
That should stop people triggering my stuff! |
|
|
|
|
|