Help with PK8's Self Variables

Waegukin

Warper
Member
Joined
Jul 6, 2015
Messages
3
Reaction score
0
First Language
English
Primarily Uses
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
I'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?
 

Waegukin

Warper
Member
Joined
Jul 6, 2015
Messages
3
Reaction score
0
First Language
English
Primarily Uses
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 :p

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.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top