[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
170
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
170
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
170
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,379
Reaction score
1,557
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

I'm sure this question's been asked before, but I can't find an answer: is there any way to run the Steam version of RPGMaker *without* being logged into Steam? It's a frustrating extra step sometimes.
Been seeing bright flashes in the sky for a while, and thought it was my eyes playing tricks on me. Nope! Lightning. Now it's raining heavily. Seeing lightning, but not hearing thunder, is weird.
Small Update for myself:
>Two Dungeon maps are done, Dungeon 3 is in progress. Dungeon 4 needs work.
>4 characters set up out of a possible 6 but those come later.
>Hub area needs work.
>Game completion..., 20-25% maybe?
Does anyone else find writing dialogue hard?
You guys want more tutorials? Well not only are we doing new video tutorials with Driftwood, we've also brought in two contributing authors for the blog to get a new tutorial every week! First one here from @Avery
https://blog.rpgmakerweb.com/tutorials/tutorial-mapping-interior/

Next week we'll get something from @hiddenone

Forum statistics

Threads
100,712
Messages
978,633
Members
132,325
Latest member
ighjku
Top