Defining and modifing global variables

Cristiander

Veteran
Veteran
Joined
Aug 13, 2015
Messages
41
Reaction score
1
First Language
Romanian
Primarily Uses
[SIZE=10.5pt]In my game I'm using Yanfly Engine Ace - Passive States v1.02[/SIZE]

[SIZE=10.5pt]Link - [/SIZE]https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/passive-states/

[SIZE=10.5pt]For those who don't know it's a script that allows certain party members to have states applied to them permanently.[/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt]What I want is for some of my heroes to be able to change the state that is applied to them.[/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt]The way I thought about it is so:[/SIZE]

[SIZE=10.5pt]I have to define the state in the character's notebox, nowhere else, so I'll define the state as a global variable[/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt]Instead of <passive state: 28>[/SIZE]

[SIZE=10.5pt]I'll have <passive state: global.character1_state>[/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt]And then all I would have to do to change the state would be to modify that global variable. It should work, if it could be done.[/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt] [/SIZE]

[SIZE=10.5pt]My question: how do I do this? Where would I have to define that global variable and how would I modify it?[/SIZE]
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,667
First Language
German
Primarily Uses
RMMV
Please give a link to the script you're using, preferably to yanfly's page and not the direct download.
 

Cristiander

Veteran
Veteran
Joined
Aug 13, 2015
Messages
41
Reaction score
1
First Language
Romanian
Primarily Uses
I found a solution.

A little studying of the ruby language and a lot of trial and error and it worked out! :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,972
Members
137,561
Latest member
JaCrispy85
Top