Code: Select all
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="yes" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>bottle_pop_1()</name>
<script>echo("Trigger516()")
</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile>C:/Users/kuei/.config/mudlet/Sounds/bottle_pop_1.wav</mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>bottle_pop_1()</string>
</regexCodeList>
<regexCodePropertyList>
<integer>4</integer>
</regexCodePropertyList>
</Trigger>
I called it using Trigger516() and it successfully echoed back Trigger516(), but it did not play the sound.
The debugger said it successfully ran Trigger516(). I have had triggers play sounds before, but never
one using a Lua function so I suspect the Lua Function may be the problem.
So how do I get bottle_pop_1() to fire or should I just make it a regular trigger without the Lua
function, call it as Trigger###() to play the sound file?