Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Tue Mar 06, 2018 5:22 am   

Simple String List variable +alias
 
I have a stringlist variable named "spammers" with 6 different commands

I would like to make an alias 'spam' - and have it choose at random one of the commands from my "spammers" variable.

What is the simplest way to do this?
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Tue Mar 06, 2018 1:57 pm   
 
#ALIAS spam {%item(@spammers, %random(1, %numitems(@spammers)))}
_________________
Discord: Shalimarwildcat
Reply with quote
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Wed Mar 07, 2018 2:11 am   
 
Shalimar to the rescue as usual.. thanks again. :)
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net