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
dmitchel
Newbie


Joined: 20 Oct 2001
Posts: 4

PostPosted: Mon Jun 24, 2002 7:44 pm   

Write a BLOCK of test to a file??
 
I am tring to write a block of text to a file. On the mud I play items can be 'identified' with a scoll, the mud then returns a variable amount of text lines that I would like to append to a file.
Each ID 'block' begins with "You feel informed:" then from 5 to 8 lines discribing the item that I would like to append to the file. Any ideas/Tips/Hints would be great!!
Thanks!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jun 24, 2002 8:54 pm   
 
Since the amount lines that follow the "You feel informed:" is variable, you need some other way to know when to stop capturing the text. I'm going to use a blank line here, you can change it to something else if it doesn't work for your case:
#TRIGGER {You feel informed:} {#T+ identify}
#TRIGGER {$} {#T- identify} "identify"
#TRIGGER {(*)} {#WRITE 1 {%1}} "identify"

All of this assumes that the file is already opened as file 1.

Kjata
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