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.

One skill, several results

TeaBag

Member

Hey everyone, got 2 questions, hopefully you can help me out. They basically both involve how I would go about making one skill have several effects, either at random or based on the attack target.

1.) One skill/Several random effects.

Lets say there's a skill called "Roll the Dice". When used, it has a one in six chance of several effects. Basically, the skill used never changes, but the battle animation and effect change depending on the random outcome.
Example:

Is there an easy way to go about making this?

2.) One skill/Different effect, depending on target.
This one's a bit more tricky but pretty important. I'd like to know how to make a skill have a different effect depending on its selected target, as in in a whole new animation/effect depending on if you attack monster A or B, or heal Hero A or B. And if possible, I'd like to extend this to standard weapon attacks, as in you'll see a different animation if you attack a flying monster as opposed to a grounded monster.
Example:

Any ideas anyone? Thanks.
 
I can help you with the first one.

Basically, have the skill, instead of doing anything else, call a common event.

Have the common event generate a random number.

Use Conditional Branches with that random number to... let's see. I believe that Force Action (Immediate) would work, and the character doesn't have to know the skills to be Forced to use them. So, if that works, Force Action with assorted skills.

In the event that I'm wrong about whether Force Action would do the job, don't despair-- use Inflict Damage, Show Battle Animation, Change Enemy State, even Transform Enemy, and fake it.
 

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