|
Alejandro Newbie
Joined: 22 Apr 2020 Posts: 2
|
Posted: Wed Apr 22, 2020 7:39 pm
OnInput Trigger Challenge |
Hey all,
I'm having challenges with this trigger in CMud. Most of the time it works great, then for reasons I don't understand, it will just stop working. It's pretty frustrating when it stops as it quickly becomes game over and I'm stuck doing a quick post-mortem, only to realize that this has just stopped midstream for no reason I'm aware of.
Any ideas on how to make this work consistently? Or why this just sometimes stops working?
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger type="Command Input" priority="3570" copy="yes">
<pattern>Quaff (*) @PotionContainer</pattern>
<value>#ADD QuaffCount 1
#IF @QuaffCount>7 {
Drink Spring;Quaff %1 @PotionContainer
#VAR QuaffCount 0
} {}</value>
</trigger>
</cmud>
|
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4662 Location: Pensacola, FL, USA
|
Posted: Thu Apr 23, 2020 1:45 am |
Your variable in the pattern should be in braces:
Quaff (*) {@PotionContainer}
Your #IF expression should be in parenthesis:
#IF (@QuaffCount>7) {
Hmmm, I would delete the following bit:
copy="yes"
I have no idea what that is supposed to be doing. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Alejandro Newbie
Joined: 22 Apr 2020 Posts: 2
|
Posted: Thu Apr 23, 2020 4:25 am |
Thanks a ton, I made those changes and let you know if I run into any further issues. Thanks for the quick feedback! I think the copy="yes" might just be referring to me copying directly from the settings file and pasting here, but who knows!
|
|
|
|
|
|