Oh man, I'm doing my best to follow along but this is a tiny bit above my current understanding of complex events using so many variables.
I'm starting to wonder if this is a bit too ambitious lol
I appreciate your detailed explanations though.
I guess it would have to have a negative impact incase a girl scout were to get mugged or something along those lines lol.
I'm trying to envision in my mind how to even begin setting this up but i'm drawing blanks.
No worries,
Though I wouldn't necessarily call it complex, just involved. Really it's just a rather lengthy multi stage basic equation, where all of the influencing factors are taken into account & applied to the primary "funds" variable.
I would suggest that before you try to set up the event tree, you identify all of the factors that you want to potentially influence the "funds" variable, & how much of an impact you want those influencing factors to have on the "funds" variable. Because in the end each component of the event tree is simply a basic mathematical operation; once you've determined how you want each component of the equation to interact, it's simply a matter of writing it out.
For example,
Have each of your "recruits" create a baseline transaction 1 per (in game) time interval, with 1 "transaction" being equivalent to 10 "funds". Think of it as akin to a currency exchange rate.
Now you also suggested the question of scarcity & demand. So you could have the "scarcity" calculated based upon various thresholds of units had, which could be linked to a secondary variable, that could then be used as additive bonus to the "funds" generated per transaction. I.e. variable "scarcity index" can be linked directly to possession count of the item, & then variable "scarcity" can be derived from various thresholds of "scarcity index". Say a 1 to 10 additive to the fund amount, with bonus being inversely proportionate to number in possession. I.e. fewer cookies equals bigger bonus.
Then simulate demand by using an RNG also between 1 to 10 additive to the fund amount, that is reset each time interval to. Then simply solve for total funds generated per time interval.
R = Recruit, T = Transaction, S = scarcity, D = demand, F = Funds, Sb = Scarcity Bonus, Db = Demand Bonus, & TF = Total funds.
Where (R * 1) = T.
(T * 10 = F) +(S * T = Sb) + (D * T = Db) = TF
So at minimal "scarcity" & "demand" bonuses each transaction produces 12 "funds" per time interval; & at peak "scarcity" & "demand" bonuses each transaction will produce 30 "funds".
The only other thing to consider will be do you want each region to be effected by universal influences, or should different regions potentially have different levels of things like "scarcity". If you decide that all regions should operate on a universal pressures, then you only need to run the equation once per time interval. If you decide you want each to region to have their own influence factors, then you'll need to create a "scarcity" & "recruit" variable for each region. & then each region will have it's own calculation in the event tree.
Ten regions who necessitate ten iterations of the formula during the common event triggered on the time interval. Though that would still be relatively easy, because you would largely just copy & past the equation, then edit for the region specific variables.