|
Odeon Novice
Joined: 17 Nov 2008 Posts: 30
|
Posted: 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 :) |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
|
|
|
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
|
|