I'd like to be able to tell the client to perform an action (like an input trigger) "x" times, where I specify "x".

Like if I make an input trigger for "lc" to mean "look in x.corpse" I'd like to be able to type "lc 4" and have the client send this text to the game:

look in 1.corpse
look in 2.corpse
look in 3.corpse
look in 4.corpse

Mudmaster does this with a List function, where it knows to "count" from 1 to the specified number as the upper limit of the list and then to increment a variable with the current value of the list entry, adding 1 each time it's called.

hope I explained that sensibly.