RNG Chance activator
Last updated
Last updated
Well, well, some time ago I wanted a NINJA Armor and the idea was.. ok, some hits are dodged and some don't, but.. that "dodge" how to do it?, well, after a long time thinking this method came up, let's explain it.
After adding the name, lore and material..
So first, the idea is to make a RECEIVE_HIT_BY_GLOBAL and cancel event.
So now, it is cancelling EVERY received hit, to make it to sometimes cancel and sometimes doesn't cancel, we have to make the activator itself to run sometimes, so, we will add a condition related with RNG, the nutshell is, a random number between 1 and 4, if it matches 1, the activator will run, it has a probability of 25% -> that is the probability we want, let's add it.
PLAYER_NUMBER
And in the first part we will add "%rng_1,4%" (this require PlaceholderAPI and RNG Expansion)
EQUALS
"1" (because we want it to trigger only if the random number between 1 and 4 matches 1)
And the item is ready
And it worked, the activator only runs 1 over 4 times.
If have any question feel free to ask it in the discord of EI, have a nice day :P