Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Interupting a charged attack.. RMXP

ChrisL

Member

So, in my RPG I am creating a few different styles of characters that specialize in disrupting / interrupting different kinds of charged attacks.

For example, Character_1 has an ability called Trip.  I want this ability to be able to knock an enemy out of a Charge style attack.  So, once an enemy starts "charging" for a very powerful attack next round, I want the Character_1 to be able to use his Trip ability to stop the next attack from happening.

So far I've only been able to get it to work in a sense where the charge takes two rounds.  I can't get the game to recognize the interupt while the enemy has already chosen to do it the next round.  So, even though the enemy is in a "tripped" state, the enemy has already chosen to do the attack this round, so it doesnt really stop the attack.

How I have it set up exactly.

Skills
Character_1 has a skill called trip, it inflicts the Trip state, and takes away the Charge state.

Enemy_1 has a skill called charge, that inflicts the Charge state.

Enemy_1 has a skill called Charged_Attack, he uses this when he is inflicted with the charge state.  Its simply a powerful attack.

This is what the troops page looks like:

Code:
Condition: Turn 1+1X,  Span: Turn
@>Conditional Branch: [1. Test Monster 1] is [Charge] inflicted
    @>Force Action: [1. Test Monster 1], [Charged Attack], Random
    @>Change Enemy State: [1. Test Monster 1], -[Charge]
    @>
   : Branch End
@>

So basically, when Test Monster 1 uses the Charge skill (which inflicts him with the charge state), he won't attack until next round.  So, the next round when Character 1 tries to use the Trip skill (which cures the Charge state), the monster will still use Charged Attack, because the monster already chose to use it before the round started.

The only thing I can think of, is to somehow make the monster charge for two rounds, so that gives the player an extra round inbetween the Charge and the Charged Attack to put a stop to the Charged Attack.

What do you think?  Any help would be huge, because every day I'm running into these little problems and it's keeping my develpment at a hault.
 

ChrisL

Member

Well, while no one here seemend to be able to help, I figured out that if I add a "stun" effect in the mix, it will stop the enemy from continueing the attack.  Thanks anyway though guys, hopefully this topic will at least help some people.
 
Yeah, if you just give the Trip command the Can't Move attachment, you should get the desired effect.  Also, using trip on any enemy, charging or not, would give them the Can't Move, which I think is a good addition.  Skills that are specific to an enemy annoy me for some reason.
 

ChrisL

Member

Guardian1239":3e2xs7fs said:
Yeah, if you just give the Trip command the Can't Move attachment, you should get the desired effect.  Also, using trip on any enemy, charging or not, would give them the Can't Move, which I think is a good addition.  Skills that are specific to an enemy annoy me for some reason.

actually, the actual trip skill doesn't cause the cant move effect.  I made a conditional branch in the troops page, it makes it only possible for the trip-daze effect to work correctly when the enemy is under the charge state.  Sorry, but my game has a lot of skills that work under certain cercumstances.  There is a balance though, my game wont make you completly depend on using them.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top