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.

Can you change a skills SP requirement to a charge up time?

What i mean by this is that i want certain skills in my game where you dont need SP instead just a charge up time, example - You get the skill fire ball every 3 minutes and when you use it you must wait another 3 minutes before you can use it again.

Thanks to anyone that can help.
 
Is this for an ABS, or what?  (In a general sense, the answer that I'd use is something like "Parallel process common events using wait commands to re-learn a skill combined with a skill that forgets itself when you use it," but that might depend on which ABS you use)
 
Unka Josh":32bwelxr said:
Is this for an ABS, or what?  (In a general sense, the answer that I'd use is something like "Parallel process common events using wait commands to re-learn a skill combined with a skill that forgets itself when you use it," but that might depend on which ABS you use)
Yeah that sounds like a good idea, i'm using Xas_hero ABS so would that be possible?
 
You can try this method. In the skill tool event, have a Conditional Branch with:
Code:
@>Conditional Branch: Variable [1: Cooldown] == 0
  @>Skill animation, etc. here
  @>Control Variables: [1: Cooldown] = x (number of seconds to wait)
  @>Control Switches: [Skill Cooldown] = ON
 : Else
  @>Show Text: You still need to wait \v[1] seconds before using this skill.

Now create a Parallel Process Common Event, triggered by the switch you used before. Use the code
Code:
@>Conditional Branch: Variable [1: Cooldown] <= 0
  @>Control Variables: [1: Cooldown] = 0
  @>Control Switches: [Skill Cooldown] = OFF
 : Else
  @>Control Variables: [1: Cooldown] -= 1
  @>Wait: 20 frames

What the skill does is checks if a variable is 0 (if the cooldown time has passed). If it is, it does the skill, but sets the cooldown time to any number and turns on a Common Event that reduces the cooldown time. You can add messages or SEs to play when the cooldown has finished. Just play around with the values and commands. Good luck with it :thumb:
 

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