Hey! I’d love to know if it’s possible to make a Self Variable; it would be super useful for my videogames, so I can avoid making a lot of variables that does the same thing for different events individually.
There are the Self Switches so I guess it’s possible to create a Self Variable, I just don’t know how. Can someone please tell me how to create a Self Variable and also how to set, add, remove, multiply and divide it?
Maybe if there is a script that allows me to have a Self Variable, like maybe replacing the 001 variable for Self Variable so everything I do about the 001 variable counts as Self Variable, but idk if that is possible.
If anyone helps me, I’ll be super grateful!! If I know how to do this it will definitely be a Before and After for my videogames, I really hope it’s possible. I’ll wait patiently for an answer. :)
Oof, but I don’t know japanese. Does the code work in japanese? Isn’t in english how it works? And thanks, but how do I use this? Edit: Ah nevermind, I’m dumb. That japanese text is an explanation of how it works, and in that explanation there’s the download link for the script. So thank you, tomorrow I’ll see if I can do anything.
But just in case, I’d like (if possible) an easy explanation of how it works, because I don’t know anything about scripting.
If I don’t find the way to do it, I’ll ask it here. I hope I find the way to do it.
The language barrier is quite high.
I hope it gets translated correctly.
Although there are many features, I can only explain the basic usage.
Copy the script and install it.
By default, “Self Variable 0” is configured.
“Self Variable 0” is assigned to “Variable ID 317”.
Therefore, use “Variable ID 317” as the event condition.
Assign a value to “Self Variable 0”.
Use the event command “Script”.
In the example below, 100 is assigned.
self_value_set(0, 100)
Assign the value of “Self Variable 0” to an “arbitrary variable ID”.
Use the event command “Control Variables”.
Enter the following script in the operand “Script”.
self_value(0)
If you want to change the variable used for “Self Variable 0” to an arbitrary variable ID.
Or, if you want to add more self variables.
Edit the script directly.
Change
SET_VALUE[0] = [0 , 317]
to
SET_VALUE[1] = [1 , 10]
This will add “Self Variable 1” with “Variable ID 10”.