Basically I have an NPC that can alter the tax for EVERY npc
how could I make a system to increase or decrease the tax
Is this based off something, and is the second ‘npc’ the player?
I mean you could use block code algrorythm ig. Idk how block code works so… yeh.
By NPC I mean every “sentry” on the map
And I just want to know how I can be able to change the tax multiplier
How are you tracking it in the first place?
Every NPC thats part of the “population” increases a counter.
The counter would be multiplied by the set tax to give money to the player every minute or so, and the higher the tax rate the lower the happiness level of the people
I just want to know how I can let the player change the tax rate
Change the tax rate by block code multiplication blocks. I think that’s the only way, through multiple buttons that have the block code that sent channels.
I don’t know how to use blocks that’s why I’m asking
…
well I’m tired so I can’t exactly help u much maybe toaster can
Just researched, this definitely involves block code, and probability and higher/lower chance
I assume you use a channel to activate different sentries, make that channel also increment a counter, connect that counter to a property. Name it “People” then go into an item granter that grants however much you want it to tax is per person and multiple it by the “People” and “Tax” properties, the “Tax” property is another property that the player can control.
No what I’m asking is how to let the player increase the tax rate
just make two buttons that increment or decrement a counter, said counter is connected to a property for the tax.
Edit - also if you don’t want to use block code, this isn’t possible.
but I need to know what block code to use
Do you want block code for the entire system?
… yes ![]()
I don’t know how to use block code
Oh players? Oh then use counters, and properties, to create a tax that goes up and down, probably requires block code for the math part, for calculating taxes
Alright, sit tight, this may take along time, and may or may not be very memory extensive.
Alright, Im done @AntLav (Im just pinging because I edited this into an existing reply). Here is the block code and some of the complicated parts, Im pretty sure you can figure out the easy parts. The “Get Tax” channel is just a button I added for testing, you can make the “Get Tax” channel activate every minute or so.
These are all the same item granter block code, it’s just that it’s too long for one single screenshot. The item granter setting grant 1 cash.
These are the settings for the Tax Property and Tax Counter, the player versions are the same except their starting value is 2.
There are also 2 buttons next to each counter that you might see in the back of the screenshots, those just increment and decrement the counter they’re in front of for a total of 4 buttons.
you are literally an angel thank you so much




