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.

Force Action [RESOLVED]

Hey all,
I have a little question regarding the "Force Action" event command. I don't really get how you make an enemy attack before the round starts. Here's my basic commands:
Code:
Troops:
Battle Event:

Condition: [Turn 0]  Span: [Battle]
@>Text: Haha I'm gonna cast a spell on you
@>Force Action: [3: Spyrla], [Doom], Random, Execute Now
@>Text: Haha I cast a spell on you
@>

When I test it in battle however, the enemy only says the two lines of text and skips the action, which I don't get why. Do I have to change the span? Do I have to give the enemy in the database the skill "Doom" first? If anyone could help me with this problem that'd be really great, thanks  :thumb:
 
Force Action forces that action to preform next turn when the assigned enemy/actor's turn comes up.  If you want to do an effect like the one you want, you can just show the animation and manually add the effects.
 
I think the [Turn 0] executes the commands before the actor menu (Attack, Skill, Defend, Item) shows up. Since this is a phase before the main battle phase, it is probably ignoring the Force Action.
Try changing to [Turn 1], it should attack at the beginning of the 1st turn. But not before then.
[Turn 1 +1], with a span of [turn] should attack at the beginning of every turn.

Force Action is an odd functioning command. It doesn't actually execute the action, it just puts it in a queue to be executed. It will also cancel, or replace the character's (enemy or actor) regular action.

Be Well
 
I guess that's the reason why. I've decided just to set it up in the skills and have a common event display the text, as the boss only uses the skill at the very beginning. Thanks for your information anyway, I learned something new about eventing :smile:
 

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