How can I create a cartel system?

It's kind of silly, but within my game I have a bunch of girl scouts who are going around selling cookies for me.
What im trying to do is figure out a way to have them generate more money based on certain factors
like:

How many scouts there are
How many boxes of cookies are in stock
what the demand for cookies are
ETC.

Of course the player will be going around performing sales as well, but the part im trying to figure out is how to have "employees" so to speak within this system.

Edit: I've been trying to find suitable plugins like some sort of enterprise or gang plugin or something along those lines with zero luck.
Perhaps I am simply not seeing where you are running into a problem, but I would think that eventing & variables would handle just about everything.

Namely assigning various factors in the game world variables, & then having those variables apply mathematical operations to your "value" variable. Then instead of using the standard shop menu, just have a transaction common event that operates off of the "value" variable.

Is there something in particular that you're running into the proverbial wall on?
Are you asking for help designing the system (figuring out which sales levers the player should have control over, how to make the system fun, how to avoid player abuse of the system, etc.)?
  • If this is the case, please be a little more specific about the kind of things you'd like ideas/suggestions on, so we can provide them!
Or are you asking for help implementing the system in RPG Maker (setting up randomization, tracking sales levers with variables, creating a way to visually show sales results in-game, etc.)?
  • If this is the case, your thread is in the wrong place! It should be moved to the Support subforum for whatever RPG Maker you are using. Please "Report" your own post, and request that it be moved to "MV Support", "VX Ace Support", or whichever RPG Maker you're using, and a mod will transfer it for you.
Yes, I am seeking help inventing or designing this system.
If I wanted specific help with an aspect of it i would for sure post it in support.
That being said, maybe I can clarify.

Ive never seen a game that allows a player to control "hypothetical npcs". Lets say for example I have territories where im not allowed to sell cookies, what Im trying to figure out is how to set something up where as the player progresses through the game, the npcs can expand the territory so to speak.
Its kind of hard to explain without using my home language.
I hate to say it like this, but think of it like a drug empire.
I would be in charge of all the girl scouts selling the cookies and gaining territory and what not, but also have a way to track and manipulate those sales using variables and items etc.
It sounds like you need to integrate a parallel process with a time mechanism, & have a "recruitment" variable linked to your number of active NPCs as a multiplier, to effect a second "influence" variable. & then have triggers tied via conditional branch to various thresholds of the "influence" variable.
Well when you put it that way.... how silly of me 😛
JK.
Thats what im trying to troubleshoot right now is finding a way to make it work.
Im almost thinking the math that would go into this is beyond my current comprehension.
This still sounds like an implementation question to me, as illustrated by 111thHarbinger's reply.

Moved to: RPGMakerMV
Damn damnit lol
Sorry @Kes
I would set up a time system that operates as a parallel process, then have a common event to essentially "run the numbers" as it were, to generate funds for you triggered at specific time intervals. Say once a day (in game time) at COB. Probably best to a have a tiered common event to effect a "funds" variable, via the various other influencers which should each be tied to variables as well. Once all of the other variables have been applied to the "funds" variable, have the action complete & generate an amount of funds based on the amount of the "funds" variable. That way you can use items to add bonus variables that will reset to zero on the completion of the calculation, so they only function as temporary buffs.

You'll also need a "recruit" variable, to reflect your pool of available NPCs; along with variables for each region, so that each can have their own set of influencing variables. I.e. one region having higher value than another due to the events effecting that region. Also so that you can reduce the "recruit" variable, & employ them to specific regions.

For example say you start with a recruit variable of "10", with access to regions 1, 4, & 7 due to your current influence level. You assign recruits to those regions until reducing the recruit variable until you hit "0". & in turn increasing the respective "assigned" variables for each region by the amount you reduce the "recruit" variable.

You could run the whole system from a collection of skills that only operate in menu, that each activate various common events. Or you could use Yanfly's Main Menu Manager, to all of the activating common events, into a common event tree accessed from the main menu.

The only thing your really need to decide before plotting it all out, are two things.

First, do you want to have variables that negatively impact the "funds" variable total?

Second, do you want the influencing variables to be additive or multiplicative in their effective on the "funds" variable?
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.
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 always envision the girl scouts doing the mugging personally. Those little monsters are ferocious!
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.
Oh wow, that really does help.
So, once I figure out the different factors that can "buff" sales in certain regions, THEN I can figure out how to start designing it.
im thinking of having items that allow them to carry more cookies, or travel for cheaper.
Im basically trying to make a dope wars rpg, but its cookies instead of drugs.
Ive even toyed with the idea of having a crafting system and recipes for cookies.

So If i may, i just want to recap so I make sure i understand.

I need to figure out ALL of the changing variables like buff items, reputation points, etc.
then I need to figure out how to actually apply this into a comment event tree running in parallel, at all times, for each region...
in a nutshell?
I need to figure out ALL of the changing variables like buff items, reputation points, etc.
then I need to figure out how to actually apply this into a comment event tree running in parallel, at all times, for each region...
in a nutshell?

Oh I wouldn't have it all running as a parallel process at all times, that's what the time system is for. Just integrate a trigger into the time system, so that each time the in game time reaches COB, the "calculate total funds" trigger switches on. Then have the "total funds" common event tree activate on that trigger, & after "total funds" completes, switch the "calculate total funds" to off again.

Items or skills that apply buffs via variables can simply call up specific events on activation. & influences like "scarcity" & "demand" can be determined during the "total funds" common event.

That way you reduce the number of active parallel processes, & reduce potential lag.
I am going to read and read over your replies and see if i can come up with something this evening.
I really appreciate your help.
Im still worried this is beyond my abilities to set up, which sucks because im sure lots of people would like a system like this.
No worries.
So I just spent the last 2 hours with a pen and paper trying to map out how this will work.
One big thing I realized is im going to have to come up with a UI for the player to access through the menu to check on all these variables and stuff.
Im having zero luck 🙁
If you want to use plugins for UI, I would recommend using a combination of Yanfly's Main Menu Manager & Common Event Menu.

I used the combination to create a local map & world map interface that is accessed from the main menu, that operated off of variables that would essentially be used to define the character's position in the game world, & pull up the appropriate images when the "local map" & "world map" events that were activated from that submenu. The dialogue & help windows in those submenus could also be used to display the various variables at work as well.

It's possible that someone else has created a plugin that would be more direct in its application, towards your intended goals, but I am not aware of any personally. I like those two plugins because they are very flexible in nature, & can be used to create various submenus.

If you wanted to create the UI without the use of any plugins though, you could create a "PDA" type key item, that would pull up a common event decision tree when used, that would then activate various other common events & common event decision trees from the initial common event decision tree. Which would essentially allow you to create a secondary menu accessed from the items submenu. Just make the final choice on each of the common event decision trees, retreat to the prior common event decision tree for ease of UI navigation.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-create-a-cartel-system.86426/