|
oooojavaoooo Newbie
Joined: 16 Nov 2004 Posts: 3
|
Posted: 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? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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}}
|
|
|
|
oooojavaoooo Newbie
Joined: 16 Nov 2004 Posts: 3
|
Posted: 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
|
|
|
|
|
|