YesNoOk
avatar

trigger random question (Read 484 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
    • Russia
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.
Re: trigger random question
#3  June 25, 2022, 09:53:09 AM
  • avatar
    • Russia
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!