View Single Post
Old 03-18-2006, 02:57 PM   #12 (permalink)
Packer898
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Try this instead...

Code:
switch ( Utility.Random( 3 ) )
                      {
                          case 0: from.AddToBackpack(new Pinatagold() ); break;
                          case 1: from.AddToBackpack(new Pinata() ); break;
                         case 2: from.AddToBackpack(new Pinatatoken() ); break;
                     }
Now on a different note why are you posting help for this here? This has nothing to do with SP!DERS new random double functions. This should have gone in Script Support instead of here. Im sure that SP!DER is being nice about it but alot of others would be rather upset at the hijack of the thread for something that doesnt have anything to do with the authors post.
__________________
"We sometimes congratulate ourselves at the moment of waking from a troubled dream; it may be so the moment after death."

~Nathaniel Hawthorne

Last edited by Packer898; 03-18-2006 at 03:01 PM.
Packer898 is offline   Reply With Quote