[PRG VXA] How to add a switch to a script function?

Status
Not open for further replies.

Devildimos

I ruin memes for a living
Veteran
Joined
Jul 11, 2014
Messages
82
Reaction score
172
First Language
Eglish
Primarily Uses
RMVXA
Hello Everyone!

I am a big failure when it come to scripts. I might be able to adjust a few lines here and there. But this seems to be too complex too me. :s

I want to add a switch to the slip damage function to turn it true or false for the damage, regain, state counter to trigger.
If the switch is false the state will remain there doing nothing but be paused until the switch is true.
I am using Falcao Pearl ABS Liquid V3 and Bug Fixes for Falcao's Pearl ABS Liquid v3 by Sixth. which overwrite that function. Instead it to function by steps taken it works by seconds.
In the image below is the "Bug Fixes for Falcao's Pearl ABS Liquid v3 by Sixth." starting at line 1225 with that function.
Slip Damage.png
I am trying to make a turn based system using a ABS and eventing. So I think adding a switch to that will be the best way to control when the state effect will trigger and the time of the state.

Thank you in advanced
 
Last edited:

Devildimos

I ruin memes for a living
Veteran
Joined
Jul 11, 2014
Messages
82
Reaction score
172
First Language
Eglish
Primarily Uses
RMVXA
Cannon Fire!
*BUMP*
I think we hit something...
 

Devildimos

I ruin memes for a living
Veteran
Joined
Jul 11, 2014
Messages
82
Reaction score
172
First Language
Eglish
Primarily Uses
RMVXA
Bump
So I tried fuzzing with the cooldown of skills. See if I could place a switch there to stop the count.
But that did not work. I might have to request for a patch for both state count and cooldown count.
Coldowns.png
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Your issue is using a single = instead of ==. = is assignment, == is comparison. If you do "if $game_switches[3] = true", you're literally setting is to true and then checking whether setting it to true results in true, which it always will.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top