News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

trigger random question

Started by bigpimp, June 25, 2022, 06:52:12 AM

Previous topic - Next topic

bigpimp

hey guys

have a question about "random" trigger

lets say i have

triggerall = random < (100 * (AIlevel ** 2 / 64.0))

and then trigger1 = random > 500 in the same AI -1 changestate block

does this mean changestate will never happen, since triggerall random is always lower than 100 and trigger1 is always higher?
or those different random values applied separately (successively)?

ps.
Spoiler (click to show)
seems that if 1st random check is in triggerall triggerall = random < (100 * (AIlevel ** 2 / 64.0)) and second is in value value = IfElse(Random < 500,200,230) for example, then it doesnt conflict and checks for them separately (so both 200 and 230 could happen, despite triggerall random being always lower than 100), but what about if its just triggers referencing non-overlaping random range?

PotS

The random triggers are all independent, essentially.

For example:

trigger1 = random < 500 && random < 500 && random < 500

Activates 12,5% of the time.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

bigpimp

Quote from: PotS on June 25, 2022, 09:15:15 AM
The random triggers are all independent, essentially.

For example:

trigger1 = random < 500 && random < 500 && random < 500

Activates 12,5% of the time.

thanks man!