I'm still taking my mudlet baby steps and need help.
I want to type mob and have it send 'setm '..currentMob... arg1 arg2.
Thanks!
Need a simple alias
Re: Need a simple alias
Alias: ^mob$
Code:
send("setm " .. currentMob .. " arg1 arg2)
Based on the information you've provided, that is how you would do that. However, it probably won't do what you want, since I assume arg1 and arg2 are things that will change based on what you want to do...If that's the case you need to provide a bit more info the args and we'll have to setup a function to handle that.
Code:
send("setm " .. currentMob .. " arg1 arg2)
Based on the information you've provided, that is how you would do that. However, it probably won't do what you want, since I assume arg1 and arg2 are things that will change based on what you want to do...If that's the case you need to provide a bit more info the args and we'll have to setup a function to handle that.
Re: Need a simple alias
? huh
I thought it would be ridiculously simple.
mob gold 10
mob maxhit 5
mob armor 0
..i'll figure it out...
I thought it would be ridiculously simple.
mob gold 10
mob maxhit 5
mob armor 0
..i'll figure it out...
Re: Need a simple alias
Ah sweet. I was just starting to understand this from the Yoda Speak example in the links.
Thx so much
Thx so much
Re: Need a simple alias
'the links' would be what exactly?
Re: Need a simple alias
i dunno why i said links. was reading: http://wiki.mudlet.org/w/Manual:Introduction
Re: Need a simple alias
How would I make the aforementioned work with negative numbers. When I do mob armor -1, the trigger doesn't catch.
Re: Need a simple alias
^mob (-?\w+) (-?\w+)$