Shield and Break system (Octopath traveler)

So, the console is not throwing any error. That means the plugin is working, so it's probably an incompatibility.

I noticed that in your initial notetag you put in <mSh: 2>, it should be <mSh: num=2>.
Like it says in the help file it will look for the num variable in notetags, allowing you to modify it with states classes, equipment,... You could have a state that reduces max shield by 1 with a <mSh: num-=1> for instance.

Once that's done let's confirm it works. Start a battle, open the console and type
$gameTroop.members()[0]._mSh
It should return the value in your mSh notetag.
If it does return it try hitting weaknesses until the break state is applied.
If this works then it means your battle UI is overriding my windows.

Try this and tell me the step at which it stops working.
Hi! So, I did try <mSh: num=2> at first, but it didn't work, so I tried the other way to see if it did. I did read the help file, but I think I assumed since my game doesn't feature equipment, I could simply write <mSh: 2> instead. My bad. With that being said, I tried what you suggested, but the console didn't return the value in the mSh notetag 🙁 So it stopped working on the very first step 🙁

Oh, by the way, there is no customized battle UI in my project, all you see other than the default menus is part of the battleback, so I don't think it could be overriding your plugin's windows (but I could be wrong, I could test without a battleback to see what happens).

The first picture is from before I changed <mSh: 2> to <mSh: num=2>


I wonder if the overly simple stat numbers couldn't be affecting how the plugin works? Like, the enemy has 2 attack, 2 defense, 40 HP and so on. Likewise, the actor doesn't have that much damage either.
Could you send me your plugins folder and your plugins.js file via PM so I can take a look at it directly?
So, after some testing the plugin is working correctly.
Shield is properly added to enemies and is getting reduced when hitting weaknesses.

I did 2 things to test that:
-I put my plugin at the very bottom of the list.
-Since there's odditites with death states in the base engine I changed the default added state to state 4 poison.
Do the same and you'll see that poison is added after 2 aqua attacks.

The reason console wasn't working is SRD super tools engine which makes the console not work for some reason.

So it means it is indeed a display incomptability between my plugin and one of yours. Which one I don't know.
So, after some testing the plugin is working correctly.
Shield is properly added to enemies and is getting reduced when hitting weaknesses.

I did 2 things to test that:
-I put my plugin at the very bottom of the list.
-Since there's odditites with death states in the base engine I changed the default added state to state 4 poison.
Do the same and you'll see that poison is added after 2 aqua attacks.

The reason console wasn't working is SRD super tools engine which makes the console not work for some reason.

So it means it is indeed a display incomptability between my plugin and one of yours. Which one I don't know.
Thank you! Yes, you are right.

I tested based on your instructions, and the poison effect was applied after the second aqua attack. However, there are still no visuals, but I now suspect it might be related to a few plugins I installed to remove some of the basic battle UI elements that are not required for my game.

I will test the plugin further. So long as I can make it work, I don't mind redesigning the UI to accomodate the new stuff. By the way, I'd like to use the opportunity to ask if it would be possible to place the shield icons by the right of the screen, instead of next to the name of the enemy? Like in the picture below.


Edit: I was finally able to make the missing stuff show up, by turning off the majority of plugins. Now I am slowly turning each of them on again, to see exactly which of them was causing the problem. With that being said, I'd still like to move the shield icon to the side of the screen!

Do you plan to only ever have 1 enemy in your battles?
If not provide a mockup of how it would look with multiple enemies. I'll see what I can do.
Do you plan to only ever have 1 enemy in your battles?
If not provide a mockup of how it would look with multiple enemies. I'll see what I can do.
At most two enemies at once. Other than that the player will fight waves of enemies, a la Pokémon and old Shin Megami Tensei games.

I sent you a PM with the mockup. I placed the icons to the side of the screen, let me know if it is possible to organize them this way with your plugin.

Thank you so much!
Hello sorry to potentially summon you again, but I can't seem to get user.x to work in the skills notetags with respect to shImpact like I could with msh in actors. I'm not the most well versed in MV's specific libraries and the documentation is "hmmm" - any help would be greatly appreciated but I understand if you're busy/aren't here anymore.

EDITING THIS: I realized u could probably just use the formula nomenclature which doesn't crash the game but it does set the shields to NaN.
Well that would be because the shield impact notetag is evaled in the Game_Action context.

The proper terminology is likely subject instead of user but I can't check right now.
You're also right that damage formula terminology should work.
If you're getting a NaN you're probably doing something wrong in your formula.
I simplified the formula down to simply a.mat already because I was worried about a possible formula error and it still immediately NaNs - I thought it might be because it would deal significantly more than break shields but set it equal to 1 just to make sure and it still throws it. Idk, just confused lol -

thanks for the response I'll keep poking around. Game_Actor does define a subject but that also throws an undefined crash.
Try
$gameActors.actor(this._subjectActorId)
Or
this._subject

If that also fails I guess I'll reinstall MV and check things out.
Perfect this works exactly as I intended! Thank you so much 🙂)))

EDIT: For future reference and for whoever may find this useful - BattleManager._subject is the agnostic call that works on both actors and enemies
Hi. First, this plugin is awesome. It has worked very well for me, except for one thing: it doesn't show me the enemies' elemental weaknesses after discovering them, although I think it's because I didn't understand how to configure the weaknesses icon array correctly. Could you expand a little more on how to do it? English is not my first language, maybe that's why I don't quite understand how to do it.
Sure:
The weakness icon array contains the number of the icon the plugin will use to display the element.
It looks like this at first : [0,0,0,0,0,0,0,0,0,0]
This is array contains a 0 for each default element of the system list (with a leading 0 because arrays start at index 0 but the element list starts at id 1).

So, if you want the first element in your system list to use icon n*31 you should put [0,31,0,0,0,0,0,0,0,0], the third to use icon 47 you'd put [0,31,0,47,0,0,0,0,0,0] and so on. Icon n°0 is blank by default and isn't displayed.
Hello!

I've tried your plugin and it's working great except for one detail: the graphical shield counter for enemies doesn't decrease. I've verified that the enemy's shield charge does decrease because when it's hit, the "poisoning" effect activates according to the charges I've set. However, the shield and weaknesses graphics never change. I've tested it with RPG MAKER MV version 1.6.1, and I have all the Yanfly plugins (Core Engine, Battle Core, Buffs and States Core, and Element Core) updated. I've also checked that the actor's shield graphics do change when hit in their weakness; the problem is only with the enemy. I've even tried it in a new project.

I'm not sure what's happening, and I hope you can help me because this plugin is really good. Thank you very much for reading!

Original thread: https://forums.rpgmakerweb.com/threads/shield-and-break-system-octopath-traveler.99411/