Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Chance Script

I wanan script that has like a fail or succes rate.
like i want something so when ur fishing. you have a 50-50 chance of catching the fish or losing the fish.
something like that. is a script needed or can this be done with variables?:S
 

Zelf

Member

Can be done with variables. The 3rd operand in the variables event is 'Random'. Set that to 1 to 100 and then with a Conditional Branch you can say...

@>Control Variables: [0001: Success Rate] = Random No. (1...100)
@>Conditional Branch: Variable [0001: Success Rate] >= 50
@> Catch fish
@> Else
@> Do not catch fish
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top