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.

Reading battle conditions every turn.

Hi. I have a problem I can't seem to figure out.

When making conditions for battle (Troop menu) how can I make it re-read the battle conditions every turn? Right now I can only make it read the conditions once. Any help would be great.
 
Okay. I will try. At the start of the battle one enemy starts off with barrier cast on it. But, when you destroy another enemy it takes the barrier off the first one.

So I have the battle conditions cast barrier on the one enemy at battle start. Then a conditional branch to check the state of enemy #2. If enemy number 2 is dead then the conditional branch removes the barrie from enemy #1.

The problem is that it only reads these conditions once. I'd like it to read the battle conditions every turn.
 

Anonymous

Guest

EDITED.

I have looked and can't find it (must have deleted it)

however it sounds like the condition has been met.

your gonna have to run me through exactly what you do. PM me if it's easier.
 
Nope. Looping it causes the battle to freeze since it is looping the conditional branch to keep checking.

Changing the (battle) and (turn) does nothing.

This is exactly what I am trying to do.

Example.

2 enemies are hiding behind 2 rocks in battle.
I have them start with barrier cast on them to simulate the extra defense from being behind the rocks. As each rock is destroyed it's shelter is removed, so I have the conditional branch something like this:

Conditional branch: If knockout is inflicted on rock 2 then change enemy state (Mushroom) - barrier.

Like I said, the event itself works, I just can't get it to re-run the event every turn to check if the rock is destroyed.
 

Anonymous

Guest

Sorry I ain't more help to you, have you tried looping the effect in the troops menu? instead of the condition
 

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