I'm a beginner in scripting, and even more-so using the Mudlet scripting language. I've been trying to build a basic combat system, but just as I started I hit a hurdle which has got me baffled.
I've got a script which contains functions for eating various herbs, all of them in this format
Code: Select all
function eat_kelp()
send("outr 1 kelp")
send("eat kelp")
end
I then made some aliases to call these functions for manual healing such as:
Code: Select all
Alias name: "Weariness"
pattern: "weari"
code: "eat_kelp()"
But, with kelp as example, when I type anything into mudlet containing the word east, whether it is "say east" or "open door east", it will call the eat_kelp() function instead of sending the command I wrote.
This happens with various other words calling other herb functions. Does anyone have any idea what's going on ?