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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Odeon
Novice


Joined: 17 Nov 2008
Posts: 30

PostPosted: Mon Jan 26, 2009 8:51 am   

Items text file
 
Hi,
I would like to save the result of identify spell to a text file

Here is an example

Code:
76H 206M 20V >recite greater scroll
You recite a scroll of greater identification which dissolves.
You feel informed:
Your inner eye shows you a scroll of greater identification.
It is a scroll.
Its weight is 1 lb and its value 800 coins.
Its lifetime is 100 days and it looks brand new.
This item is magic.
This item casts at level 60:  identify, .

76H 206M 20V >look


So i would like to append to an existing file (let's say items.txt)
Code:
Your inner eye shows you a scroll of greater identification.
It is a scroll.
Its weight is 1 lb and its value 800 coins.
Its lifetime is 100 days and it looks brand new.
This item is magic.
This item casts at level 60:  identify, .


Then, how can i append a line to that text file with a command line ?
ex of command line:
Code:
comm This item can be found in Sherwood Forest

will add the line below to the file items.txt
Code:
This item can be found in Sherwood Forest


Thanks,

PS : i know about cmud capabilities of items database but a specific software to that mud (multimud) has been developed for items :)
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Jan 26, 2009 7:53 pm   
 
You want to look in to using the #FILE and the #WRITE commands; and use Multistate triggers to capture the info you want to write.
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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