 |
ekirhal Newbie
Joined: 28 Jun 2005 Posts: 1
|
Posted: Wed Jun 29, 2005 12:03 am
How do I capture a line to a file? |
I want to keep track of all my gains for a character. When I gain a level the mud tells me: You raise a level! You gain X/YYY hps X/YYY mana X/YYY move. I want a trigger that will capture that line and write it to a file: CharGains.
How do I set this up? |
|
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Jun 29, 2005 2:17 am |
#TR "log_gains" {^You raise a level! You gain %d/%d hps %d/%d mana %d/d move.} {
#FILE 1 CharGains.txt
#WRITE 1 {%line}
} |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Wed Jun 29, 2005 9:14 am |
#TR "log_gains" {^You raise a level! You gain %d/%d hps %d/%d mana %d/d move.} {
#FILE 1 CharGains.txt
#WRITE 1 {%line}
#CLOSE 1}
It is poor resource management to not cleanup and release a used resource when your done with it. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Jun 29, 2005 11:19 pm |
*bonk self*
I totaly meant to put that in too :p See what 15 hours of hard work a day does to you when you get home! |
|
|
|
 |
|
|
|