 |
Latreg Newbie
Joined: 28 May 2008 Posts: 2
|
Posted: 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 |
|
|
|
 |
Dharkael Enchanter

Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
 |
Latreg Newbie
Joined: 28 May 2008 Posts: 2
|
Posted: 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 |
|
|
|
 |
|
|
|