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.

What did I do wrong?

I've followed his instructions for Limit on this thread and it doesn't work >.<

viewtopic.php?t=66204

And here is how I done it...

limit1.jpg

limit2.jpg

limit3.jpg
 
I'm not sure why you started a new thread for this, but... well, I'm also not sure what you're trying to do with this skill. And you didn't describe what you wanted it to do here.

Here's what it looks like your code will do:

When the character uses the skill Limit, it will put them into the Limit state. It will then call a common event. The common event will check the player's HP, and then, if it is below 75, will cast Limit all over again, potentially locking the game, because there's nothing that will stop the loop.

Were you trying to have Limit kick in automatically when Nido's HP are 75 or less?

Because if you are, you've got a couple of things backwards. The common event needs to call the skill before the skill is used. If that's what you want, you'll want to remove the Common Event call from the skill, and put it in a Battle Event that runs every turn. And once you've done that, you don't need a skill to put the Limit state on someone-- Change State will do that without fail.
 
Unka Josh":9w58ucma said:
I'm not sure why you started a new thread for this, but... well, I'm also not sure what you're trying to do with this skill. And you didn't describe what you wanted it to do here.

Here's what it looks like your code will do:

When the character uses the skill Limit, it will put them into the Limit state. It will then call a common event. The common event will check the player's HP, and then, if it is below 75, will cast Limit all over again, potentially locking the game, because there's nothing that will stop the loop.

Were you trying to have Limit kick in automatically when Nido's HP are 75 or less?

Because if you are, you've got a couple of things backwards. The common event needs to call the skill before the skill is used. If that's what you want, you'll want to remove the Common Event call from the skill, and put it in a Battle Event that runs every turn. And once you've done that, you don't need a skill to put the Limit state on someone-- Change State will do that without fail.

"Uncle" Josh is on here too? =o
Anyways sorry for making a new thread I thought the original mightve been too old to bump.
I meant for it to be Nido's hp is 25% or less.

I think I'll go with the state effect.
I just want it so the state is automatically cast when his hp is 25% of max hp, but I don't know how to do that >.<

Example:
Nido's hp 250/1000
Limit state is automatically applied for 6 turns (I know how to do the turns dw lol)

Sorry for being a noob with too many posts that are all questions but thanks.
 
Good guess on the derivation of my username-- it's what my nephew Christopher called me for a long time. Anyway, it's no problem.

First things first: This is a technical question that will change how this is done.

How many times can you go into the Limit state in one fight? It's going to be easier if the answer is "One."

If it isn't, and you want the state to have a duration, what are the rules for when you can re-enter the state after it wears off?

My recommended options: Either go into the Limit state (only) while you are at 25% HP, but all the time when you do, or else make it where you can only go into the Limit state once.
 

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