How to send a random command
Re: How to send a random command
This is really nice...helped me to optimise one of my scripts that randomly targets a body part. The scripts is now about 15 lines shorter
Re: How to send a random command
LOL Good one
Re: How to send a random command
how do you send the commands in order and then when done with the last repeat? Is it possible with some sort of variant of this command?
Re: How to send a random command
You could keep a global counter.
Just remember that it is global, so perhaps use a more unique name for the counter
The counter just loops between 1 and 3 (or whatever the size of the table is - #commands).
Just remember that it is global, so perhaps use a more unique name for the counter
Re: How to send a random command
came across this thread, just started using mudlet not to long ago and have been trying to figure out the easiest way to make a random movement trigger, and this looks about what i am looking for though i think i am missing something during implementation of it.
the input from the mud I play looks like this
Obvious Exits: southwest, northwest, west, and north.
the trigger i am using to capture it is
the input from the mud I play looks like this
Obvious Exits: southwest, northwest, west, and north.
the trigger i am using to capture it is
and using the above information this is what i put in
any help would be greatly appreciated, i've been spending alot of time reading up on lua, regex and pattern matching but still getting used to mudlet
Re: How to send a random command
Hey.. nubtater. Here's an easy way to capture those exits:
Re: How to send a random command
appreciate all the feedback, been using it to fiddle with in different ways to expand my understanding of lua so thank you for all the comments and info