|
Moirai Newbie
Joined: 23 Aug 2018 Posts: 2
|
Posted: Thu Apr 11, 2019 6:13 pm
Cmud Trigger help. (Dartmud) |
Hey, thanks for looking at my thread!
Can't quite figure out how to make this trigger work, bear with me.
I'm trying to make a set that will alternate between reading and revising a spellbook.
So I'm trying to revise a spellbook (command: revise spellbook) until I get an improvement that looks like this "* You think your scroll reading skill has improved. *"
The revise I have to wait until my concentration gets to "You're bright-eyed and bushy-tailed." before I can do each revise because of the concentration economy on the mud.
Then I want to start studying the spellbook (study spellbok) until I go an adjustable amount of times in a row without improving (You're bright-eyed and bushy-tailed.) then head back to revising until I get that improvement message.
I can do a single simple easy function triggers but this one wants to use the pattern "* You think your scroll reading skill has improved. *" and I'm not quite sure how to get this one working as all my triggers I currently use just go off of one pattern and have a simple command to send back to the mud.
I imagine there is going to be some variables involved and some way to reference them but I have no idea how to go about doing that.
I don't know if this makes any sense |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4672 Location: Pensacola, FL, USA
|
Posted: Thu Apr 11, 2019 10:31 pm |
Well, I think we are missing some patterns to make this work, but it should not be hard.
Code: |
#TR {You're bright-eyed and bushy-tailed.} {revise spellbook}
#TR {revise completion message when you dont improve} {revise spellbook}
#TR {You think your scroll reading skill has improved.} {study spellbook}
#TR {study complete message when you arent bright yet} {
studyFail=(@studyFail+1)
#IF (@studyFaill<@studyFailLimit) {study spellbook} {revise spellbook}
} |
This one you would just edit the value of @studyFailLimit if you want to study more or fewer times before switching back to revise weather you are bright-eyed or not.
Though if they have a proper fail message, you should not even need to keep track of the numbers. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|