IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Incremented list, a list that works like for/next
Guest_kostia_*
post Jan 31 2004, 09:06 PM
Post #1





Guests






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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 25th May 2024 - 08:58 AM