Field Effect Plug-in

Hello guys.


I'd like to request a field effect plugin, that also has existed for older rpg maker versions.



What does this Plug-In?


It changes the state of the battlefield and can put certain battlers into advantage or disadvantage.

Example:


Electric Terrain (From Pokémon Reborn, an RPG Maker Pokemon Fangame)


*    Grounded Pokemon cannot fall asleep
*    Created by Electric Terrain
*    Electric moves from grounded Pokemon increase in base power x1.5
*    These moves now apply additional Electric type damage:
        Explosion        Selfdestruct        Surf            Muddy Water        Hurricane
        Smack Down        Thousand Arrows
*    Focus Punch will always fail
*    The stat-changing effect of these moves is amplified:
        Charge            Eerie Impulse
*    Magnet Rise lasts for 8 turns
*    These moves increase in base power x1.5:
        Explosion        Self Destruct        Surf            Muddy Water        Hurricane
        Smack Down        Thousand Arrows
*     These moves increase in base power x2:
        Magnet Bomb
*    These moves will terminate this field effect:
        Mud Sport
*    Nature Power becomes Thunderbolt
*    Camouflage changes the user's type to Electric
*    Secret Power may Paralyze



Regards,


Goldschuss
*Push*


Since no one posted in here, I don't suppose it's in the works right now, nor will it be in the near future.



After a bit of research I found out, that the scripts for older RPG Makers were made by Yanfly (field effect state)
Servidion and I created this just yesterday with the current YEP and a little sprinkle of some notetag javascript. Let me see if I can get him to post you a write-up on it. I may end up just turning it into a small plugin if it's needed, but after what we already did yesterday, I doubt I'll need to. Hang tight.
I have something for you! Neko actually helped me with it. I'll give you the code and how to do it in the next edit! *drum roll*


*edit* You'll need multiple of Yanfly's scripts if you're not already loaded up with them. Especially Buffs and States Core. http://yanfly.moe/


First the SOURCE. Apply this to a party member. This state has no icon and no effect, but it lasts however many turns you want your field state to last.


*Source state*


<Custom Turn Start Effect>


for (var p=0;p<$gameParty.members().length;p++) {


var actor = $gameParty.members()[p];


if (!actor.isStateAffected(298))


actor.addState(298);


}


for (var p=0;p<$gameTroop.members().length;p++) {


var actor = $gameTroop.members()[p];


if (!actor.isStateAffected(298))


actor.addState(298);


}


</Custom Turn Start Effect>


<Custom Remove Effect>


for (var p=0;p<$gameParty.members().length;p++) {


var actor = $gameParty.members()[p];


if (actor.isStateAffected(298))


actor.eraseState(298);


}


for (var p=0;p<$gameTroop.members().length;p++) {


var actor = $gameTroop.members()[p];


if (actor.isStateAffected(298))


actor.eraseState(298);


}


</Custom Remove Effect>


Bear in mind I'm still inexperienced with note tags so the "if"s and "else"s are still quite difficult for me so I won't be showing formulas, but much of what you ask CAN be done!


Everywhere that you see 298 is where you would put your Field State (Not the source state).


Now for the field state. It actually uses a Victor Engine plugin for the elemental strengthen.


https://victorenginescripts.wordpress.com/rpg-maker-mv/action-strengthen/


In your Field State (not the source) you would want note tags from this plugin.


I'll tell you the things it CAN do.


<element strengthen: x, y%> Strengthen a certain element's damage dealt from affected battlers (Party or Enemy).


<stype strengthen: x, y%> Strengthen certain skill types.


<skill strengthen: x, y%> Strengthen individual skills.


Etc.


-For your focus punch you can "Strengthen" the skill by -100% so it always does 0 damage.


-Neko's Tags plugin - http://stitchgaming.com/2016/03/nemv-tags/ - You can use a "Grounded" tag in a custom formula that can check if the enemy is grounded AND if the field state is in effect. If that enemy has both, then it will not induce sleep.


-The stat effects of spells (Charge, Errie Impulse, and Secret Power) can be affected in a similar manner, as well as the turns of Magnet Rise.


-Mud sport can target all enemies and allies with Yanfly's Target Core and have it remove the SOURCE state. Once the source state is gone the field state will be removed as well.


-As for nature power you'll need Yanfly's Skill Core and have Custom Show note tags on Nature Power that will hide it if this field state is in effect, and another on Thunderbolt that will show it if the actor has Nature Power AND the Field State is in effect.


-Alright for Camouflage (Had to think about this for a bit) You can have another "if/else" where you use Camouflage and if the field state is active, it will add a special Electric State (Seperate from your usual Electric State) to the target and remove their.. I dunno.. Water? State. You can also have a custom remove effect on the state that removed it when Camouflage is removed. Think of Camouflage as another Source State and Electric as the Field State in the formula, though only affecting the individual. You can probably alter the formula above to accomplish this task.


Sorry for the wall of text! I'm not a scripter by any means, and I do apologize for a lack for scripts or note tags, but I hope this is a really good starting point for you.


~Serv
Woa guys! Thanks a bunch.


Actually the example from Pokémon reborn was pretty complex and well thought-out. However, it is something that the future plugin should be capable of doing.
 


Anyway, since it's all a WIP, let's keep it simple for the start:
Icy field:
Ice attacks deal 50% more damage


All Battlers that have the type Ice regenerate 3% of their maximum life every 2 turns.


Still, you did all the effort and went through all the options that I would need to recreate all of the effects 0.o I really appreciate it.
Will test it out sometime tomorrow.

Regards


Goldschuss
Not sure I understand. Servidion was just showing you how to do what you asked about with things that already exist, so I guess I'm not sure what you mean by "since it's all a WIP". Just so we're clear, none of what he posted was theoretical. Given some YEP, NeMV, and VE, what you described can be done in its entirety. Sorry if I misread or misunderstood; I just didn't want what we were saying to be lost in translation.


As for your "Icy field", I believe this would probably be NeMV - Tags to tag the enemies as Ice, YEP - Buffs & States Core for creating the custom regen effect, and VE - Elemental Strengthen for the extra damage (though I really know nothing about that VE plugin). If you're asking for a more explicit example, I could try to put one together for you, but I'm not even sure I'm reading this right, so I don't want to get into all that if unneeded.
Ah sorry my bad, for not being clear (it was pretty late)


 when I was mentioning the icy field example, I meant that I was going to try something more simple like regen and dmg boost.


You don't need to do any more right now, but I'll probably come back if I have questions regarding this.


Again, many thanks, it helps making the game more strategic.


Regards


Goldschuss

Original thread: https://forums.rpgmakerweb.com/threads/field-effect-plug-in.60551/