The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: bigpimp on June 25, 2022, 06:52:12 am

Title: trigger random question
Post by: bigpimp on June 25, 2022, 06:52:12 am
hey guys

have a question about "random" trigger

lets say i have

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

and then
Code:
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 toggle visibilty
Title: Re: trigger random question
Post by: PotS on June 25, 2022, 09:15:15 am
The random triggers are all independent, essentially.

For example:

Code:
trigger1 = random < 500 && random < 500 && random < 500

Activates 12,5% of the time.
Title: Re: trigger random question
Post by: bigpimp on June 25, 2022, 09:53:09 am
The random triggers are all independent, essentially.

For example:

Code:
trigger1 = random < 500 && random < 500 && random < 500

Activates 12,5% of the time.

thanks man!