About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Sixy
Newbie


Joined: 02 Jun 2002
Posts: 5

PostPosted: Tue Jun 11, 2002 2:04 am   

Trigger needed
 
I need a trigger when you see something like You killed <name of npc>.

I want to:
get black book and quill from pack
hold quill
write on book with quill
then it needs to wait for this: Enter your text. Use ** on a line by itself to exit.

and then it needs to send out: <NPC Name> Killed (Time and Date)

If someone can help me set this up it would be a great help.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jun 11, 2002 2:38 am   
 
Death logs :) I love 'em

#TRIGGER {^You killed (*).} {#VAR V_Just_Killed {%1};#FILE 2 DeathLog.txt;#WRITE 2 {@V_Just_Killed Killed %time(c)};#CLOSE 2;get black book from pack;get quill from pack;hold quill;write on book with quill;#T+ MyLittleDeathLogBlackBook}

#TRIGGER {^Enter your text.} {@V_Just_Killed Killed %time(c);~*~*;#T- MyLittleDeathLogBlackBook;put quill in pack;put black book in pack} "MyLittleDeathLogBlackBook"

#T- MyLittleDeathLogBlackBook
Needs to be entered in the command line to force the class folder MyLittleDeathLogBlackBook off
Might want to change the folder properties so it is disabled when connecting to the mud later.


Trigger 1:
Job to:
a) spot the death and figure out who died
b) save a copy to a text file in case your book gets destroyed, mangled or stolen or
you are interrupted by something else. If you get multiple attacks or are in a PK
hostile environment then the text file serves as a method of saving your kills so
you can build your death log book at a later, safer time.
c) get your recording items (book/quill)
d) toggle the class folder to look for the Enter your text when you are writing

Trigger 2:
Job to:
a) spot that you are writing on the book
b) add the death log notice
c) put your recording items away (book/quill)
d) untoggle the class folder

An idea would be to make your death log file comma delimted perhaps or something similar
so you could import it and sort it at a later date with a spreadsheet program.

TonDiening
Beta Upgrading to 6.26
Reply with quote
Sixy
Newbie


Joined: 02 Jun 2002
Posts: 5

PostPosted: Tue Jun 11, 2002 5:26 am   
 
Crap I forgot after recording <NPC Name> Killed (Time and Date) this it needs to go ** and then s to finish the writing/ could you show me how to fix the trigger to do that?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jun 11, 2002 5:29 am   
 
** then s?

#TRIGGER {^Enter your text.} {@V_Just_Killed Killed %time(c);~*~*;s;#T- MyLittleDeathLogBlackBook;put quill in pack;put black book in pack} "MyLittleDeathLogBlackBook"

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Sixy
Newbie


Joined: 02 Jun 2002
Posts: 5

PostPosted: Tue Jun 11, 2002 6:22 am   
 
Thanks TonDiening it works perfectly
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