The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: pliio8 on January 07, 2007, 03:24:00 AM

Title: % Chance?
Post by: pliio8 on January 07, 2007, 03:24:00 AM
How can i program % chances? I've never been able to figure it out...

Thnaks!
Title: Re: % Chance?
Post by: &&&&&&&&&&&&& on January 07, 2007, 03:31:51 AM
What are you talking about? you did just fine, I have a %clue of what your talking about.
Title: Re: % Chance?
Post by: pliio8 on January 07, 2007, 03:42:20 AM
Uhhhh...... Can anyone here reply thats not on a laptop at the assylum?

Thanks...I think...again....
Title: Re: % Chance?
Post by: Arrow on January 07, 2007, 03:45:01 AM
You'd have to use variables. Say you have for possible outcomes, and a twenty five percent chance of each occuring.

First, start an event and select variable operations.

Choose a new variable, call it whatever.

Now, say set to a random nuber between one and four.

Then, conditional branches.

Make one that says: If (variable) is = to 1
  - whatever
ELSE
and then make a new conditional branch under the else option, like so.
   If (variable) is = to 2
     - whatever
   ELSE
   One more time.
   If (variable) is = to 3
   - whatever
   ELSE
   This time, don't make a new branch. Just put whatever you want the forth outcome to be under else.


Hope that helped you man!
Title: Re: % Chance?
Post by: pliio8 on January 07, 2007, 03:49:17 AM
Thanks, i'll try it out.... ;D