Hi, so I've been trying to use PK8's Self Data Suite to tag a handful of events with simple self-variables. I wanted the game to be able to convert some of them to normal variables, use them, then over-write the existing self-variable with the new number. My problem is I know very little about Ruby and haven't the slightest idea how to even get the self-variables to work and there's no guide I can find on how to use the Self Data Suite. If anyone could help me with example code or a link to a tutorial, I'd greatly appreciate it.
Help with PK8's Self Variables
RGSSx Script SupportI've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Please link to the script.
The self-data-scripts should contain a description of their commands and how to use them if I remember correctly - which part of that description do you have problems with?
Please link to the script.
The self-data-scripts should contain a description of their commands and how to use them if I remember correctly - which part of that description do you have problems with?
Sorry about putting this in the wrong spot, I'll be more careful next time.
Link: http://forums.rpgmakerweb.com/index.php?/topic/1567-the-self-data-suite-self-switches-variables-and-metadata-for-everything/
Yes, there is documentation, just realized I was forgetting to put the quotation marks around my ID like an idiot 😛
I set a variable called "health" using: self_variable("health", 100)
What I am having issues with still is that I wanted to set a normal variable equal to the self-variable, which doesn't seem to be covered in the script documentation or I missed it/am using it incorrectly. I assumed that I could use "Control Variable" event command with the get script set as the variable to get, which in this case would be 'self variable("health")'. Doing so however outputs an error message:
Script 'Game_Interpreter' line 543: Syntax Error Occured.
unterminated string meets end of file
(eval):1: syntax error, unexpected $end, expecting ')'
Figured this out, I put in a ' instead of a "
I haven't gotten to this point yet, but what I'd like to do after that is to take that variable, change it, then reset the original self-variable with this new number. I assume I use the same script I used to set it in the first place, but I'm not sure how to put the variable in the code. I think it should look like 'self_variable("health", variable[6])' though I'm not really sure that'll work.
Link: http://forums.rpgmakerweb.com/index.php?/topic/1567-the-self-data-suite-self-switches-variables-and-metadata-for-everything/
Yes, there is documentation, just realized I was forgetting to put the quotation marks around my ID like an idiot 😛
I set a variable called "health" using: self_variable("health", 100)
Figured this out, I put in a ' instead of a "
I haven't gotten to this point yet, but what I'd like to do after that is to take that variable, change it, then reset the original self-variable with this new number. I assume I use the same script I used to set it in the first place, but I'm not sure how to put the variable in the code. I think it should look like 'self_variable("health", variable[6])' though I'm not really sure that'll work.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-pk8s-self-variables.44132/