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
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Fri Mar 01, 2002 3:17 pm   

writing in a window
 
I'd like to write in a window some
vars to keep logging of them.
ie:
Mark Sanced Tank
Joy Not Sanced Cleric
...

how can i send to that window these
datas ?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Mar 01, 2002 5:14 pm   
 
You are interested in the #CAPTURE command to perform these kinds of functions:

Lets first create a window to capture things to:
#WIN SpellStatus


For example
#TRIGGER {^The white happiness cloud around (%w) disappears.} {#CAP SpellStatus}
#TRIGGER {^(%w) glows white with a happiness cloud} {#CAP SpellStatus}

That would send to those lines to a window called SpellStatus.

#TRIGGER {^The white happiness cloud around (%w) disappears.} {:SpellStatus: %1 Not Sanced}
#TRIGGER {^(%w) glows white with a happiness cloud} {:SpellStatus: %1 Sanced}

These triggers don't capture the information they send the information to the window inbetween the :<window name>: (I'll try and find the help file for this)


Lastly to send whether they are a tank/cleric or not and simply doing it:

You can manually edit or create variables like:
#VAR Mark_Class Tank
#VAR Joy_Class Cleric

#TRIGGER {^The white happiness cloud around (%w) disappears.} {:SpellStatus: %1 Not Sanced @%1_Class}
#TRIGGER {^(%w) glows white with a happiness cloud} {:SpellStatus: %1 Sanced @%1_Class}

So if you get the trigger:
The white happiness cloud around Mark disappears.
Then in the window :SpellStatus: it will send: Mark Not Sanced Tank
because:
%1 would be the word Mark from the trigger
@%1_Class would be what the variable Mark_Class holds.

Later on this might be of interest; passing variables to other sessions.

TonDiening
Beta Upgrading to 6.26
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Fri Mar 01, 2002 8:48 pm   
 
This way is not good for my session.
I have to send to a window some lines
without capturing from the main window
How can I do?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Mar 01, 2002 11:36 pm   
 
How do you wish to obtain the data then?! It has to be captured or timed someplace, perhaps you should be a lot more specific about what you want to do. Just to give you a pretty example:

JimBob say I want the space to be more interesting then this black void.
JaneBrain says ok. Let me write you out this blah, blah, bleh. There you go lights that twinkle.
JimBob groans that doesn't cut it, I didn't want the empty blackness here anymore.
JaneBrain in disgust says pick a number from 1 to 1,000,000,000,000.

Right now I am about to say which of the trillion possible answers do you want?
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Fri Mar 01, 2002 11:48 pm   
 
i want to create a alias that write in another window.
ie:
alias: help
that write in the window HELP something
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Mar 02, 2002 12:34 am   
 
Do you just want it to write "HELP something" to the other window?
Do you want the window to have a specific name?
Do you want "something" written to the window "HELP"?
Do you want the muds output to the "help" command sent to another window?
Do you want your alias to interpret parameters?
Do you want your alias to pass parameters to the mud?
Do you want to the alias to sumbit a search to "HELP.com" of "something"?
Do you want "something" searched for in the ZMud HELP file?
Do you want "something" searched for in the Windows HELP file?

Do you want me to stop being rude? Do you get my point though. The gurus here may be geniuses but none of them will even bother to reply until you can tell em what you want.
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Sat Mar 02, 2002 12:42 am   
 
sorry for my bad english. I'll try to explain
again.

I want to write something to a window called
HELP , but not capturing from the mud with
a trigger. The things written there are like:

PHONE JOHN FOR HELP
ASK RUDY FOR HELP

no parameters, nly an alias called help that
writes in the window called HELP (opened with
a #WIN command)

hope for help
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Mar 02, 2002 2:09 am   
 
It wasn't your English that was bad. Just lack of specifications. The alias is easy, I am going to guess you want to type whatever should be displayed right after the help alias.

#AL help {#WIN HELP %upper(%-1)}
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Sat Mar 02, 2002 2:18 am   
 
GOOD!
was so easy:P
thx a lot guy
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