Thread: Random
View Single Post
  #5  
Old 07-29-2001, 04:37 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by ownerofbabylon
Like this:

if (weaponfired) {this.result=random(1,100)
if (this.result<=20) {
message Uh oh it was less than or equal to 20;
}
else if (this.result<=50) {
Oh thank god it was higher than or equal to 50;
}

I just did that off the top of my head but its the basic idea.
its wrong .. line should be
else if (this.result>=50) {
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote