Status
Not open for further replies.

Cythera

Veteran
Veteran
Joined
Jul 31, 2019
Messages
271
Reaction score
620
First Language
English
Primarily Uses
RMMV
Hello! I've been trying to add in a state immune pop-up and have not been very successful :(
I link states frequently to player skills - one skill has a 60% Stun chance, another has a 45% Burn chance, etc etc. However, some enemies are immune to these states. I want to implement a short text pop-up that says "State Immunity" or similar when an enemy is hit with a skill that has a state linked to it, so players don't waste turns using the same skill to inflict the state when the enemy is immune.
I have tried to use SRD's Battle Pop-Up Customizer, however it doesn't appear to play well with some other plugins I use (looks to be Olivia's OTB/Battle Effects plugins as her 'Weak' and 'Break' popups cease appearing with the SRD plugin turned on).
I'd appreciate a plugin that allows me to put that text pop-up. I have some base knowledge of JavaScript, so it doesn't need to be a 'plug and play' script. I was thinking of using a variable to store the state ID and comparing that to the target's state rate. There I must add I only have a base knowledge of JavaScript, so if someone has a more efficient or easier idea, I'm all for it!
These are the battle-related plugins I'm currently using - for compatibility request: YEP (no surprise there), Mog's Battle HUD, and Olivia's OTB + Battle Effects + Weakness Display + Victory UI(not sure if this one's relevant, but to be safe, here it is!)
 

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
490
Reaction score
276
First Language
English
Primarily Uses
RMMZ
Which Yanfly Plugins are you using? Because if you're using his Battle Engine Core plugin, it should show state immunities by default.
 

Cythera

Veteran
Veteran
Joined
Jul 31, 2019
Messages
271
Reaction score
620
First Language
English
Primarily Uses
RMMV
I am using the battle engine core. I don't see any option for an immunity popup - if you mean the battle log option, I don't actually use the battle log in my combat for a number of reasons.
Perhaps I should clarify what I mean by popup: I'd like the text to appear with the damage numbers on the enemy. I realize I may not have been precise enough in my original post.
 

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
490
Reaction score
276
First Language
English
Primarily Uses
RMMZ
I've been trying to track down which plugin it is but I distinctively remembering one that showed pop-ups along with damage such as elemental weaknesses, resistance & immunities as well as state resistances & immunity. Trying to find an example is like looking for a needle in a 192 plugin haystack.
 

Cythera

Veteran
Veteran
Joined
Jul 31, 2019
Messages
271
Reaction score
620
First Language
English
Primarily Uses
RMMV
Thanks for the suggestion, @Johnboy .
I'm trying to get the plugin to do what I want and am hitting a snag. I'm using two variables, 59 to store the linked state ID, and 60 to get the index of the enemy. 59 is defined in the skill action sequence; 60 is set as b.index in the damage formula.
This is what I put in the custom pop-up box:
if(!$gameVariables.value(59) == 0) {

var state = $gameVariables.value(59);

var target = $gameTroop.members()[$gameVariables.value(60)];

if(target.stateResistSet().contains(state)) {

target.customPopup("",8);

}

}
However, it keeps showing the error "Cannot read property 'stateResistSet' of undefined".
I've never used the stateResistSet call before, so I doubt I'm using it correctly. If someone could help me correct it, that would be great! :)

EDIT: I went a different way to get the desired effect. If anyone wants something similar, I did it like so: Repurposed the "Break" pop-up in the OTB Battle Effects plugin since I wasn't using it and it saved making a new pop-up. It shows when target.isStateResist to a state ID, which I change in every skill that has a state linked to it.
 
Last edited:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,950
Reaction score
14,788
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

When you're forced to make a tutorial for something obvious.
246907756_284595507001402_2098549601125689312_n.jpg
one dislike. tragic really ofended me bruh
i only have one decent song and i dont even think it fits for a video game
Update: I finished the combat arena! My goodness, it took a while! There were numerous little bugs to squash.
Maldra wrote on stramin's profile.
Hi regarding the 32 bit -> 64 bit
I am running on a 64 bit windows OS and tried doing this conversion. I converted all of the .exe files that I could find in the KADOKAWA\RPGMV folder using the 4gbpatch.exe file. However, after trying to access RPG Maker MV after this conversion, it simply will not load. Do you have any advice or any ideas?

Forum statistics

Threads
115,932
Messages
1,094,177
Members
151,194
Latest member
ClareElstein
Top