Random Attack System

Right now I am making a boss with randomized attacks via the use of blocks. I’m trying to make it like how critical hits work(or maybe i should find another solution idk), only without the setting of randomly searching integers when someons shoots a gadget for themselves, & immediately activated once pop-up closes(aka the dialouge). The pro, with the right functions, it can work. The cons..I have zero clue on how blocks work.
To be specific, I just need to find a way to make 5 randomized attacks in very random orders work.

← what I am using or attempting to use
Attempt of Blocks By Copy and Pasting Critical Hit Mechanic(no i am not saying to make critical hits on a sentry):

Here are some guides I would suggest looking at to learn about blocks:

The first one doesn’t have pictures, but it does tell you how the blocks work!

3 Likes

You can also use this post by Toothless.

I can come up with a formula for the crits rq
but for now to simplify your random attack blocks try this and just create the corresponding channels for 1 through 5 for the attacks you’re doing


do note this method only works for some systems depending on how you’re doing them

3 Likes

if [crit] < [crit chance]

set property [final dmg]
[final dmg] * [crit dmg]

then just subtract the player hp from that

also for details on the props

crit will be randomly set from 1-100 each time the random attack trigger is triggered

crit chance will be well your chance to get a crit so like if you get less then lets say a 70 crit chance you get a crit but if you get above 70 you don’t

crit dmg will be the prop that you can set to whatever you want depending on stats increase as you like
but it will usually be between 1 and 2 in decimals but go higher if you’d like (for example 1.5 is +50% crit dmg and 2 and 2.5 will be +100% and +150% crit dmg and etc)

attack formula will be just atk * [desired multiplier in decimals] and that’ll be your final dmg prop

2 Likes

oh yay thx i’ll take a look at those guides :+1:

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.