View Single Post
  #7  
Old 06-23-2012, 06:29 AM
Starfire2001 Starfire2001 is offline
Unholy Nation
Starfire2001's Avatar
Join Date: Dec 2010
Location: The streets.
Posts: 156
Starfire2001 will become famous soon enough
Post

If you want to do something similar to UNs...

From whatever other function.
PHP Code:
onPickBox(25); 
PHP Code:
function onPickBox(temp.c){ 
  if(
temp.c > 0){
    
this.randombox = int(random(1,9));
    
this.chat = this.randombox;
    
scheduleevent(.5,"PickBox",temp.c - 1);
  }
  else{
    
this.chat = this.randombox SPC "selected!";
  }
} 
Note I changed your random script from int(random(1,8)) to int(random(1,9)), cause assuming you are making a standard 8 box Chance event box 8 would never be selected in your original script (never can be max number).
__________________
-Ph8
Reply With Quote