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
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Fri Jul 27, 2018 8:16 pm   

Craft branch capture (Capture and timestamp something from MUD and save it)
 
In SOI aka Shadows of Isildur aka Laketown RPI

Craft branching is a cool part of the dynamic, but occasionally the branch messages get lost in spam, so I made this script to create a record of it.

<trigger priority="630" id="63">
<pattern>You have branched a new subcraft, %w %w!</pattern>
<value>#addkey branchlist %1 %2 %time()
#Echo BRANCHED! %1 %2 %time()
</value>
</trigger>
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3931
Location: Pensacola, FL, USA

PostPosted: Fri Jul 27, 2018 8:22 pm   
 
I had something like that at one point, not sure if I put it in the library or not, I haven't really been there since they more or less nuked Minas Tirath and started over.
_________________
Discord: Shalimar#3679
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3931
Location: Pensacola, FL, USA

PostPosted: Fri Jul 27, 2018 8:43 pm   
 
Ahh, I see a few issues with your code.

1. %w only matches a single word, you would want * (for the hyphenated second part), for more on pattern matching wildcards, there is a link in #HELP #TRIGGER
2. you need to surround bits of the pattern in parenthesis or else %1 (and all the others) will be null
3. Your #ADDKEY command had 4 parameters, but the command only recognizes three

I believe I just did:
#CAP Branched
And had the timestamps for that window turned on.
_________________
Discord: Shalimar#3679
Reply with quote
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Sat Jul 28, 2018 4:08 am   
 
There is a library for SOI?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3931
Location: Pensacola, FL, USA

PostPosted: Sat Jul 28, 2018 11:00 am   
 
Well CMUD has a library for storing shared scripts.
I have uploaded some for a number of games, including SOI.
Though I am sure a lot of the craft names have changed.
_________________
Discord: Shalimar#3679
Reply with quote
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Sat Jul 28, 2018 7:08 pm   
 
How do you get to that Shared Library? Feel free to share a link or email me if its more private
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3931
Location: Pensacola, FL, USA

PostPosted: Sat Jul 28, 2018 8:56 pm   
 
You actually access it from within CMUD itself.
There is a library icon along the top toolbar.
You have to log into it with your account information (same as the website).
_________________
Discord: Shalimar#3679
Reply with quote
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Mon Aug 06, 2018 9:39 pm   
 
I like the crafting packs highlights, its nice addition. Thanks for pointing it out to the n00b!
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