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.

[VX] Reraise after X Turns

ikos

Member

Hey, fellas and lady-fellas,

I have a character who has an passive ability that allows him to recover from the [Incapacitated] status (Status ID: 1) after a few turns (2 or 3). I was wondering if this is possible without scripting? As always, any and all help is appreciated.

~Ikos out :thumb:
 
Try the following:


Battle event
Trigger: End of turn              Span: Turn

Conditional Branch: Actor has Incapacitated status
Conditional Branch: Actor has "Raise after a few turns" status (Just make sure the incapacitated condition doesn't remove the "raise after a few turns" condition)
Variable Operation: i(choose the variable yourself) = Random (2..3)
Conditional Branch: Variable i >= Variable x(another variable)
Change State: Actor - Incapacitated
Else
Variable Operation: x + 1
Branch End
Branch End
Branch End


Just don't forget to reset the variables x and i after the battle. You can use a common event for that.
 

ikos

Member

Doctor":22uqsiau said:
Try the following:


Battle event
Trigger: End of turn               Span: Turn

Conditional Branch: Actor has Incapacitated status
Conditional Branch: Actor has "Raise after a few turns" status (Just make sure the incapacitated condition doesn't remove the "raise after a few turns" condition)
Variable Operation: i(choose the variable yourself) = Random (2..3)
Conditional Branch: Variable i >= Variable x(another variable)
Change State: Actor - Incapacitated
Else
Variable Operation: x + 1
Branch End
Branch End
Branch End


Just don't forget to reset the variables x and i after the battle. You can use a common event for that.

Would I have to do this to EVERY troop? :\
 

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