|
Minsk192 Newbie
Joined: 02 Mar 2002 Posts: 7
|
Posted: Wed Jun 19, 2002 11:49 pm
NEEDS HELP...If command gettin all screwy on me.. |
OK.. heres what i have so far..(not it dosn't work).
---------------------------------------------
TRIGGER ACTIVATOR: (*) gives you (%d) coins.
#VAR person %1
#VAR sum %random( 1, 12)
#VAR bet %2
say %1, on your roll you recieved a @sum
%if( @sum=7, double, quarter)
%if( @sum=11, double, quarter)
%if( @sum=1, double, quarter)
%if( @sum=4, double, quarter)
---------------------------------------------
OK... when someone gives me there coins and its not any of then numbers... it says quarter 4 times!
How can i make it so that it will only say it once if its not any of those numbers, but if it is it will say double? Any help will be appreciated.
-~~~===|!!MINSK!!|===~~~-
Beuty,
Is in the eye,
Of the Beholder.
You,
Are in the stomach,
Of the Beholder. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu Jun 20, 2002 2:16 am |
If I understand correctly you double on a 1,4,7,11 and quarter on the others
TRIGGER ACTIVATOR: (*) gives you (%d) coins.
#VAR person %1
#VAR sum %random( 1, 12)
#VAR bet %2
say %1, on your roll you recieved a @sum
#IF ((@sum== 7) OR (@sum==11) OR (@sum== 1) OR (@sum== 4)) {double} {quarter}
Assuming double and quarter are aliases.
Ton Diening
Providing untested answers that tend to be
more complicated than others. |
|
|
|
Minsk192 Newbie
Joined: 02 Mar 2002 Posts: 7
|
Posted: Thu Jun 20, 2002 2:37 am |
Ooh... I was trying the OR command, but i was doing it like this:
%if(@sum=7,double,quarter) OR %if(@sum... etc.
Anyway, thanks for the help.
hehe...And yes, they are aliases.
-~~~===|!!MINSK!!|===~~~-
Beuty,
Is in the eye,
Of the Beholder.
You,
Are in the stomach,
Of the Beholder. |
|
|
|
|
|
|
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
|
|