Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Kaset
Newbie


Joined: 08 Feb 2003
Posts: 8
Location: USA

PostPosted: Sat Jun 28, 2003 5:30 pm   

A bit of a problem.
 
Ok, a brief introduction. I've been scripting in ZMud for a while but I've never played with windows and capturing until recently. I have a goal in mind, but I can't seem to bring it to reality. I have looked over help files, previous posts, and finished scripts but I can't find anything that I'm comfortable modifying and/or that gives the desired output.

Any help would be appreciated so Here Goes:

I want a window "Status" (The easy part Very Happy) that has text captured from the main window, gags it and subsitutes it with text of my choosing. I also want the captured text to be gagged in my main window.

Here's an example of what I have, and what I want.

Triggers:
Soandso sinks their fangs into you
You feel dizzy and confused

(After eating the cure) Your confusion subsides.

Those are my triggers...now, what I want is for the status window to show me

Soandso: BITE!
CONFUSION! EAT GINSENG
CONFUSION CURED

I have a basic idea of how to sub them and gag them...but I'm not sure how to actually GET the triggers over to the "Status" window to operate with them.

Any help would be most appreciated

Kaset
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sat Jun 28, 2003 6:52 pm   
 
Use Charbal's status window extender finished script and just use variables.

#trigger {Soandso sinks their fangs into you} {#var hit BITE!}

then put this @hit variable in the status window where you whant it.

to clear it out make it #trigger {something} {#var hit ""}

any questions?
Reply with quote
Kaset
Newbie


Joined: 08 Feb 2003
Posts: 8
Location: USA

PostPosted: Sun Jun 29, 2003 6:49 am   
 
*sigh* It looks so pretty but I can't get it to work...when I type that trigger pattern, nothing appears in the text window....after adding it to the list...what am I doing wrong?

#Trigger {Soandso sinks his fangs into you} {#var hit BITE!}
addtext hit 1 1
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sun Jun 29, 2003 1:03 pm   
 
You did not follow the example in the finished script.

It would be:
addtext hit 1 1 @hit

I used the "hit" to discribe the action but it could as well have been anything.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net