RMMV: "Block" (w/Equipped Shield Icon) [[SOLVED]]

Hello Everybody!!


I have seen lots of plugin's for evasion, countering, absorbing, and shields/HPshields/ShadowCopies.. but I can't recall seeing one with a "Block"


What I mean, in reference to Final Fantasy 6, when an attack was Blocked, no damage would be dealt or displayed (not even as a 0) and an Icon representation of the Shield/Cloak/Dog that was Blocking the attack would be displayed briefly in front of the character [See Image as Reference].


What I am requesting is a Block Plugin that can operate similar to this function, whereas the string would be assigned in the Actor/Class/Armor (or any other special places that seem to fit into the Plugin) and behave as the following [Note Tags just suggestions].


Actor/Class/Weapon/Armor/Enemy/State Tags:


<BlockPhys: X%, Y>  Blocks Physical Flagged Attacks X% = Integer that is the chance of success to Blocked, Y = Icon that will display as the Blocking object.


<BlockMag: X%, Y>  Blocks Magical Flagged Attacks X% = Integer that is the chance of success to Blocked, Y = Icon that will display as the Blocking object.


<BlockCertain: X%, Y> Blocks Certain Hit Flagged Attacks X% = Integer that is the chance of success to Blocked, Y = Icon that will display as the Blocking object.


<BlockAbsorbHP: X>


<BlockAbsorbHP: X, X, X> If a Block is successful, the damage that would have been dealt by X (element) is returned as restored HP to the Target.


<BlockAbsorbMP: X>


<BlockAbsorbMP: X, X, X> If a Block is successful, the damage that would have been dealt by X (element) is returned as restored HP to the Target.


<BlockAbsorbTP: X>


<BlockAbsorbTP: X, X, X> If a Block is successful, the damage that would have been dealt by X (element) is returned as restored TP to the Target.


<BlockReact: X>


<BlockReact: X, X, X> If a Block is successful, then X = State(s) will be applied to the target that successfully Blocked.


Skills/Items Tags:


<CannotBlock> This Skill or Item Cannot be Blocked.


Final Fantasy 6 Battle: "Blocks" @ 00:13 (BlockAbsorb), 00:56 (Block), 1:21 (Block from Applied State).. Etc


((Link video for reference))


Any skilled plugin Wizards want to tackle this one? Please feel free to ask any questions!!


-Mia


Shield_Block.png
Gracious, no-pressure, bump!! 🙂
I remember something like this in Dragon Quest IX, too... I would love to try this, even though I'm still a complete novice plugin-maker... 😛  I'll get back to you if I find anything, but there might be a way to do things with Yanfly's plugins, which I'll look at first.


Edit: the icon seems a bit difficult, but I'll see what I can do 🙂
I remember something like this in Dragon Quest IX, too... I would love to try this, even though I'm still a complete novice plugin-maker... 😛  I'll get back to you if I find anything, but there might be a way to do things with Yanfly's plugins, which I'll look at first.


Edit: the icon seems a bit difficult, but I'll see what I can do 🙂



Excellent!! I'd be down to test it out. 🙂 Thanks!! We will see how it goes.
I remember something like this in Dragon Quest IX, too... I would love to try this, even though I'm still a complete novice plugin-maker... 😛  I'll get back to you if I find anything, but there might be a way to do things with Yanfly's plugins, which I'll look at first.


Edit: the icon seems a bit difficult, but I'll see what I can do 🙂



Any luck with that one yet? No pressure really, just asking. And if not, a bump for anyone else. 🙂
Any luck with that one yet? No pressure really, just asking. And if not, a bump for anyone else. 🙂

Sorry about the inactivity, I've been making a different plugin, so don't expect a plugin too soon. The plugin I'm currently making is actually a dungeon generator 🙂  So it'll take some time, but using Yanfly's Buff/State Core and Yanfly's Passive States I could make a simple block system:


<Custom React Effect>
//just replace 50/100 with the percentage.
if(Math.random()>50/100) {
target.startAnimation(53);
value = 0;
}
</Custom React Effect>


Just put that into a state and make it a passive state on shields. You can change the animation, too. Hope this helps, I might upload a video on it later 🙂
Hey, No worries at all. 🙂 I appreciate the consideration and effort. I'll give that a try and see how it goes!!


Got a link to a thread about your Dungeon Generator? I could be interested to see what that's gonna look like!!
Hey, No worries at all. 🙂 I appreciate the consideration and effort. I'll give that a try and see how it goes!!


Got a link to a thread about your Dungeon Generator? I could be interested to see what that's gonna look like!!

I haven't made a playable version yet, I'm still coding everything 🙂  But I'll PM when it comes.
Sorry about the inactivity, I've been making a different plugin, so don't expect a plugin too soon. The plugin I'm currently making is actually a dungeon generator 🙂  So it'll take some time, but using Yanfly's Buff/State Core and Yanfly's Passive States I could make a simple block system:



<Custom React Effect>
//just replace 50/100 with the percentage.
if(Math.random()>50/100) {
target.startAnimation(53);
value = 0;
}
</Custom React Effect>


Just put that into a state and make it a passive state on shields. You can change the animation, too. Hope this helps, I might upload a video on it later 🙂



Wow! Im so excited to see this! i haven't tested it yet, but is it going to work on spells too? 


Actually, it looks like this isn't working at all. Unless it's just me.. :'( 
Wow! Im so excited to see this! i haven't tested it yet, but is it going to work on spells too? 


Actually, it looks like this isn't working at all. Unless it's just me.. :'( 

Really? You put the notetag in a state and then have the shield have that state be its passive state. So, say I put that notetag in state 12, I would then put in the shield's notetag: <Passive State: 12>. Also, do you have the Yanfly's Passive States plugin and Buff and States Core plugin?
Really? You put the notetag in a state and then have the shield have that state be its passive state. So, say I put that notetag in state 12, I would then put in the shield's notetag: <Passive State: 12>. Also, do you have the Yanfly's Passive States plugin and Buff and States Core plugin?

I went ahead and figured it out. You gave me a very good headstart because I don't really know how to script, but I was able to "wing it" to edit this one to work how I needed it. 

 


<Custom React Effect>


//just replace 50/100 with the percentage.


if(this.isPhysical())


if(Math.random() <= 3/100) {


target.startAnimation(183);


value = 0;


}


</Custom React Effect>


This is what I use for my weakest shield with a 3% block rate. Thanks for all the help! 😀  


Just put this in it's own state and attach it to the Shield with an Auto-Passive tag and it's pretty cool 🙂  


Forgot to add that my animation 183 is just a shortened version of the default animation 53.
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.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-block-w-equipped-shield-icon-solved.59590/