Jump to content
  • 1

Event random


pantheoff

Question

1 answer to this question

Recommended Posts

  • 2

You can do an event who set a player variable to a random value between 1 and 10 for example (for a 10% trigger chance), with the event "Set Variable"

 

Then do a conditionnal branch : - if the player variable = 1 , trigger your event

                                                          - else, the event don't trigger 

 

Here you had a 10% chance to trigger, but if you want 1 % chance set a random value between  1 and 100, if you want 50% it's between 1 and 2.

 

Basically :  n% = 100 / [ High Value - Low Value + 1]   (for 1 to 100 it's 100, so i recommand to use  1 for the low value, you just have to take le High Value and you get the number of possibilities) 

 

I think it's easy to use and you can do a lot of things with that!

Link to comment
Share on other sites

×
×
  • Create New...