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.

random every round

I am running a combat event where the enemies attack pattern is based off of a random number. I use control variable to set a variable a random number for this. The problem is that While the first attack is random every other attack is the same as the first attack. I know the event is working every turn because if it didn't the attack wouldn't go through at all. Also the randomization is set into the event right before the outcome is needed. How do I fix this so that every attack is random?
 
Jbrist":1fz5gw4l said:
Hmm, could you maybe add a label at the beginning of the event, and after the attack has been dealt, it jumps back to that label?
I tried that and it creates an infinite loop. With some more work I figured out the problem by making the randomization and the effect two separate event pages.
 

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