Enemy In-Battle Dialogue and Resistance Changes

Reaching out for help/ideas since I've hit a bit of a roadblock. In the game I'm making, a central part of the gameplay is identifying enemy weaknesses through the use of clues discovered before and during battle. On top of this, I'd like to be able to have the enemy resistances change based on skills the player uses.


So I need help with two things:

  • What's the best way to trigger different dialogue boxes for enemies? Is it best to use switch conditions in the troop? Or is there a plugin that can help with this?
  • Is there a way to change enemy resistances without applying states? That was my first idea, and I'm ok with it, but I'm looking for other ideas.



Here's an example of the logic I'm going for:

  1. Enemy 1 starts with 100% HP, weak to lightning.
  2. Actor 1 uses "Interrogate". A message appears mid fight from the enemy "Don't startle me, I'm easily shocked!"
  3. Actor 1 uses "Thunder". 
  4. Enemy 1 hits 75% HP, and changes it's resistance to fire.



Any advice would be awesome. Thanks!
1)It depends on how complicated you want the dialog boxes to be, if you are only going to have a couple per troop events would be best.  If you want a lot of them per troop you might want to see if a plugin has been developed.


2)States would work, but the enemies can't have resistances in their traits to begin with otherwise you would just multiply a strength with the state's weaknesses.  i.e. if you have an enemy that is Earth*10% and the state applies a *300% weakness to Earth, the enemy will now be *30%.  It might be easier for you to use this plugin though: http://mvplugins.com/plugin/Shaz/Dynamic%20Traits%20and%20Effects 


and it has a help topic here too: http://forums.rpgmakerweb.com/index.php?/topic/51533-dynamic-traits-and-effects/


If that plugin doesn't do what you want, you will have to go to plugin requests.
you can use the random variable to create different dialogues if you need me to place a rough code here please tell me 


as for second question @Dalamar have placed something for you 😛  

Original thread: https://forums.rpgmakerweb.com/threads/enemy-in-battle-dialogue-and-resistance-changes.58658/