YesNoOk
avatar

trigger random question (Read 835 times)

Started by bigpimp, June 25, 2022, 06:52:12 am
Share this topic:
trigger random question
#1  June 25, 2022, 06:52:12 am
  • avatar
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
Last Edit: June 25, 2022, 09:49:46 am by bigpimp
Re: trigger random question
#2  June 25, 2022, 09:15:15 am
  • ******
    • Portugal
    • network.mugenguild.com/pots/
The random triggers are all independent, essentially.

For example:

Code:
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.
Re: trigger random question
#3  June 25, 2022, 09:53:09 am
  • avatar
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!