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
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sun Jun 14, 2009 1:48 am   

[edit][/edit]
 
[edit][/edit]


Last edited by Myrkul on Thu Apr 14, 2011 11:18 pm; edited 1 time in total
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Jun 14, 2009 3:17 am   
 
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <alias name="Sep" copy="yes">
    <value>#VAR x {1|%null|1|2|%null|1|2|3|%null|1|2|3|4}
#var $num 1
#forall @X {#If (%null(%i)) {#add $num 1} {#additem %concat(var,$num) %i}}</value>
  </alias>
</cmud>
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sun Jun 14, 2009 3:26 am   
 
[edit][/edit]


Last edited by Myrkul on Thu Apr 14, 2011 11:18 pm; edited 1 time in total
Reply with quote
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sun Jun 14, 2009 3:28 am   
 
[edit][/edit]


Last edited by Myrkul on Thu Apr 14, 2011 11:17 pm; edited 2 times in total
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Jun 14, 2009 3:45 am   
 
I actually just made it a bit better, try this.

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <alias name="Sep" copy="yes">
    <value>#VAR x {%null|%null|1|%null|%null|%null|%null|1|2|%null|1|2|3|%null|1|2|3|4}
#var $num 1
#var $null 1
#forall @X {
  #If (%null( %i)) {
    #IF ($null==0) {#add $num 1}
    $null=1
    }
    #IF (!%null( %i)) {
    #additem %concat( var, $num) %i
    $null=0}
  }</value>
  </alias>
</cmud>


Oh, and you are welcome.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
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