hi guys, i want a new veraible when i press a button.
example id 500 veraible var is stored in value. I want 501 to open. then id 502...503
thankyou
I would try to help, but I don't understand what you are trying to do exactly. I am probably missing something obvious.
But you might need to explain exactly what you are trying to achieve in game to get the best answer. You push a button and what are you trying to store as a variable for what purpose?
I'm making some kind of idle style game. There are 4 different events running and they are transferring the gold earned to each other. But I do this manually. when i press a button the event should clone itself first and then the veraible cells in the database. The veraible cell of each event must be unique. sorry i am using google translate
That helps, but sorry…that is way beyond me. Hopefully someone else can help with that.
I'm not really sure why you need each one to be "unique". I'd need more information to go on here for what you're trying to do.
In my experience with idle games, I am not sure why you'd need "unique" variables each time you push a button. Besides which, there are a maximum amount of variables you're even allowed to have, so at some point, the function would quit working entirely and that would be the end of it.
If I were to create an idle game, I'd be using Conditional Branches and storing very minimal data in the Variables themselves.
If Variable 1 is equal to or greater than 5 when button is pressed, subtract 5 from Variable 1, add 1 to Variable 2.
Every X interval of time, increase Variable 100 by Variable 1 multiplied by 10.
This would be the baseline of where and how I'd start with it. So, I'm not actually sure what you're attempting to accomplish here, and you're going to run up on the upper limit of Variables very quickly just based on button presses.
You might also run into "lag" issues if you're running a ton of stuff as parallel events all at once. I could probably quickly program a "Swarm Simulator" in RPG Maker, but the amount of calculations you eventually have it do and the parallel processes involved... I could see the game having visible lag by the time you even get to what is considered "endgame".
group of events. There are 4 events in a group. These events have x,y coordinates and the gold information they hold. so a group has 4 events and 8-10 veraible values. There are 50 groups in 1 map, there will be 5 maps in total. There will be 1250 veraible values, I want to make them automatically.
Okay, so let me know if I'm understanding what you're trying to do correctly:
1. Player pushes a button. This button takes current gold and then sends it over to one of the Events as Variable 1.
2. Event 1 would hold the first 8-10 pushes of the button.
3. Button presses would then roll over to Event 2 for the next 8 to 10.
4. Repeat 1-3 until you've filled 200 events?
So... 1600 to 2000 Variables in play on any given map.
The only way I know of to "automate" selecting a new variable is by probably using a Common Event or an event on the map. You'd have to use Conditional Branches and add another Variable to track which Variable you're using.
Button is Pressed
>If Tracking Variable equals 0
>>If Secondary Tracking Variable equals 0
>>>Store Gold in Event 1 as Variable 1.
>>>Add 1 to Secondary Tracking Variable.
Else Case
>If Secondary Tracking Variable equals 1
>>>Store Gold in Event 2 as Variable 11.
>>>Add 1 to Secondary Tracking Variable.
Else Case
>If Tracking Variable equals 1
>>If Secondary Tracking Variable equals 0
>>>Store Gold in Event 5 as Variable 51.
>>>Add 1 to Secondary Tracking Variable
You could probably refine it a little more to reset the Secondary Tracking Variable. You could also refine it to just use a single Variable as well, but I'd use two just to make it "simpler" on myself.
Either way, you're going to have to program it all yourself. There's no way to "assign new variable". You have to actually tell the program which variable to assign it to each step of the way. No automatic function for that.
The closest you'll get to "automatically assign" is just to have a Variable track which "number" you're on and then assign the next one based on that. If button is pressed, add 1 to Tracking Variable after assigning Gold to other Variable.
I understand. I haven't been able to find a solution like this anywhere. Thank you as I will do it manually one by one
I dont have a Link but there were Self Variable Plugins somewhere... it works like self switches but with variables.
Maybe that could help to make it easier.
I will run this game online.
The player will progress step by step, but the same things will always happen. idle game