|
azurerazor Beginner
Joined: 17 Dec 2001 Posts: 20 Location: USA
|
Posted: 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> |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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: Shalimarwildcat |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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: Shalimarwildcat |
|
|
|
azurerazor Beginner
Joined: 17 Dec 2001 Posts: 20 Location: USA
|
Posted: Sat Jul 28, 2018 4:08 am |
There is a library for SOI?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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: Shalimarwildcat |
|
|
|
azurerazor Beginner
Joined: 17 Dec 2001 Posts: 20 Location: USA
|
Posted: 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
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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: Shalimarwildcat |
|
|
|
azurerazor Beginner
Joined: 17 Dec 2001 Posts: 20 Location: USA
|
Posted: Mon Aug 06, 2018 9:39 pm |
I like the crafting packs highlights, its nice addition. Thanks for pointing it out to the n00b!
|
|
|
|
|
|