I have some questions regarding the logic when writing scenes. Particularly concerning how the game engine calls them.
I believe that setting scene frequency only ties to the "timeout" function. Meaning if a scene is written as timeout(300) and the scene frequency is 10 then that scene can't be called for 30 hours. Is that correct?
The part I don't understand is the frequency of total scene calls and how the games picks said scene. For example if I'm working on scene with only one condition:
Code:
OTHER: Random(0, 100) < interpersonal
Pretty simple. The game checks your interpersonal against a random number from 1 to 100. If it is less, the scene doesn't run. If it is more, the scene runs. But, how often is this dice roll ran? How often does the game try to run this scene?
Now say the conditions are:
Code:
WHO: Actor1 = getPerson(); If Actor1:rapportwithplayer > Random(0, 10)
OTHER: Random(0, 100) < interpersonal
Again pretty simple. The scene will randomly pick a person and check their rapportwithplayer is over a number from 0 to 10. If the game doesn't find a person, will it pick another until it does or if the random person fails the scene fails? Now finally what is I wrote the scene a bit differently like:
Code:
WHO:
OTHER:
SceneStart()
Actor1 = getPerson()
If Actor1:rapportwithplayer > Random(0, 10) && Random(0, 100) < interpersonal
[Run Scene]
Endif
SceneEnd()
Is this functionally different than the previous scene?
Sorry if these are all bland/obvious questions. I've been toying with the idea of rebalancing a lot of the scenes and understanding the relationship between various variables and how often scenes are played out is a big part of it. It seems what keeps a lot of vanilla scenes from running is massive conditions like:
Code:
Random(60, 1000) < Actor:perversion
Which given a character with a relatively high perversion, 80, the scene will run only 20 out of 940 potential times, or 1 out of 47. Because of this scenes like this will seemingly never run, while other scenes without random conditions will run sometimes four or five times a week.
Thanks for any insight anyone might have.