Author Topic: Chance conditional in 6.1  (Read 1347 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Chance conditional in 6.1
« on: October 01, 2018, 08:28:19 AM »
How to use it:
if chance = 1, 5
{
health + 1

That will heal you 1 point with the probability of 1 from every 5, that means 20% if you are not familiarized with fractions. Fractions are better than percentages because I don't think that PB will allow decimals, fractions can be used without decimals and will be equal to a decimal percentage, for example:

if chance = 1, 3
Will be a 33.3333333% of probability
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Chance conditional in 6.1
« Reply #1 on: October 01, 2018, 08:06:55 PM »
I don't know about fractions... Not everyone (like young people) knows them. So, I get what the idea is.

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Chance conditional in 6.1
« Reply #2 on: October 02, 2018, 08:14:51 AM »
Here, where I live, in primary school they teach us that. Hmnn... Imagine the second number is quantity of tries, and the first one is the number of working tries.
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Chance conditional in 6.1
« Reply #3 on: October 02, 2018, 12:34:29 PM »
Ah. Okay. Maybe if it's explained in detail, people might get it. Where I come from, they don't teach that till about 5th or 6th grade. Which is about 10 or 11 or something. So, I'm sure there's a lot of young people using PB. I guess it could work...