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.

Want enemy to attack multiple times in a turn

guy

Member

Ok, so I figure there some simple way to script this where you just change the value of attacks from one to more than one. So...

1. How do I script it?
2. Do I just put it under troop events and select script and enter it there?
 
This depends on what exactly you want to do.

If you want to have an enemy do a few attacks in a row, it's simple enough-- have a skill that calls a Common Event. Have the Common Event use Force Action (Immediate) Attack a few times in a row. It'll work fine.

If, however, you want the enemy to have several complete actions in one turn, there's only two ways that I know of-- a custom script, which you'd need to ask for in Script Requests, or Unka Josh's Cheating method.

For this second method, it's simple.

Put two (or more) enemies in the troop, but put them exactly on top of each other. They'll look like one enemy, but with double the actions. (It will be two different enemies to fight, of course, which may not be what you want.)
 

Jason

Awesome Bro

Unka Josh's Cheating method is always number one !

Actually that's the way I'd do it, but say, for a boss, and just give it two forms you need to get through, makes more sense.
 

guy

Member

Unka Josh":1unncjs4 said:
This depends on what exactly you want to do.

If you want to have an enemy do a few attacks in a row, it's simple enough-- have a skill that calls a Common Event. Have the Common Event use Force Action (Immediate) Attack a few times in a row. It'll work fine.

If, however, you want the enemy to have several complete actions in one turn, there's only two ways that I know of-- a custom script, which you'd need to ask for in Script Requests, or Unka Josh's Cheating method.

For this second method, it's simple.

Put two (or more) enemies in the troop, but put them exactly on top of each other. They'll look like one enemy, but with double the actions. (It will be two different enemies to fight, of course, which may not be what you want.)

The first method sounds great. I hadn't thought of that--and it'll allow me to customize the specific series of attacks more... Thanks so much! I can't wait to try it out.
 
Hey, no problem.

I use this method to also do combo attacks-- you can Force Action somebody to use a skill that they do not actually have, which has a lot of possibilities. Likewise, you can Force Action somebody who is not actually using the skill that called the common event.
 

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