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
oooojavaoooo
Newbie


Joined: 16 Nov 2004
Posts: 3

PostPosted: Tue Nov 16, 2004 6:24 am   

looping
 
Code:

#alias deal {#LOO 1,10 %if %ismember(@seat%{i},@texas) {give %random(1,@cardcount) @seat%{i};removecard} {#ECHO No one sitting at @seat%{i}}
#alias removecard {#AD @cardcount -1}

#var cardcount 52
#var seat1 maxell
#var seat2 phinox
#var seat3 drakon
#var seat4 marrz
#var seat5 x
#var seat6 sabastion
#var seat7 x
#var seat8 x
#var seat9 x
#var seat10 x

#var texas {maxell|phinox|drakon|marrz|sabastion}


trying to make a texas hold'm game but my dealing situation is broken.. any ideas?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Nov 16, 2004 7:15 am   
 
#LOO 1,10 {#IF (%ismember(@seat%{i},@texas)) {give %random(1,@cardcount) @seat%{i};removecard} {#ECHO No one sitting at @seat%{i}}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
oooojavaoooo
Newbie


Joined: 16 Nov 2004
Posts: 3

PostPosted: Tue Nov 16, 2004 8:49 am   
 
so thats close.. but its sayin 1 2 3 4 5 6 7 8 9 10 instead of telling me who is stored in @seat1 @seat2 etc
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