Hi I'm learning how to script in lua, a soundpack for a mud I play. I have this trigger that's not working. Here's the trigger.
Here's the text I'm trying to make different sounds work when encountering: open close unlock lock opens unlocks locks closes.
Thank you.
<triggers>
<trigger
enabled="y"
group="misc"
match="* leading into *"
send_to="12"
sequence="100"
>
<send>if "%1"=="unlock" then
playsound ("misc/doorunlock/"..math.random(1,3)..".ogg")
end</send>
</trigger>
</triggers>
Here's the text I'm trying to make different sounds work when encountering: open close unlock lock opens unlocks locks closes.
You unlock a hunter green oak door leading into a rustic white log cabin on the north side of the street bearing the house number "1142".
Thank you.