RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

% Chance?

Started by pliio8, January 07, 2007, 03:24:00 AM

0 Members and 1 Guest are viewing this topic.

pliio8

How can i program % chances? I've never been able to figure it out...

Thnaks!
Games in progress:
Tome of Arastovia: 7% complete at 2 hours of gametime

&&&&&&&&&&&&&

What are you talking about? you did just fine, I have a %clue of what your talking about.
&&&&&&&&&&&&&&&&

pliio8

Uhhhh...... Can anyone here reply thats not on a laptop at the assylum?

Thanks...I think...again....
Games in progress:
Tome of Arastovia: 7% complete at 2 hours of gametime

Arrow

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!

pliio8

Thanks, i'll try it out.... ;D
Games in progress:
Tome of Arastovia: 7% complete at 2 hours of gametime