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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Latreg
Newbie


Joined: 28 May 2008
Posts: 2

PostPosted: Wed May 28, 2008 6:03 pm   

multiple corpse examiner
 
so I have a pile of %1 corpses that I want to look at....
I know bits and parts of what I need but don't know how to make the whole script

exam %1.corpse but then I want the number which will fill in the %1 to have 1 subtracted from it until %1=0 then stop.

so for example

I type multexm 4
then
exam 4.corpse
exam 3.corpse
exam 2.corpse
exam 1.corpse

hope it makes sense.

found some stuff, but don't think I can put it all together just yet

#alias multexm exam @crpsnmbr.corpse
#var crpsnmbr %
#WHILE (@crpsnmbr <> 0) exam{#ADD crpsnmber -1}.corpse
#unvar crpsnmbr
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Wed May 28, 2008 7:30 pm   
 
Perhaps something like:
Code:
#alias multexm {#loop %1,1 {exam %{i}.corpse}}


EDIT:this is a more complete attempt:
Code:
#alias multexm {#loop %if( %int( %1) < 1, 1, %int( %1)),1 {exam %{i}.corpse};#no %-1}
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Latreg
Newbie


Joined: 28 May 2008
Posts: 2

PostPosted: Wed May 28, 2008 9:46 pm   
 
Dharkael wrote:
Perhaps something like:
Code:
#alias multexm {#loop %1,1 {exam %{i}.corpse}}


EDIT:this is a more complete attempt:
Code:
#alias multexm {#loop %if( %int( %1) < 1, 1, %int( %1)),1 {exam %{i}.corpse};#no %-1}



works awesome thanks
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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