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.

[XP] Restoring SP When Attacking/Defending

SPN

Member

I've wracked my brain for the past two days trying to event this, but to no avail. Here's what's up:

I want my party members to have a fixed amount of SP that is used regularly by skills/magic/whatnot, but can be restored by regular attacking and defending. The only trouble is, you can't attach Common Events to weapons like you can skills and items.

I've narrowed down the actual attacking/defending processing to somewhere in Scene_Battle 4, but actually adding what I need where is beyond me. That's where you guys come in!

In a nutshell, I need the "system" to first identify which party member is attacking/defending, then restore X or Y (fixed numbers that I could edit would be awesome) SP depending on if the action is an attack or a defend.

Things to note:
- I have next to no scripting knowledge whatsoever, so please be as detailed and specific as possible.
- I need the fixed amount of SP to restore at the same time the damage is being dealt.
- I'm using the DBS with minimal non-destructive additions (HP bars, etc.).
- I'm not using the SDK.

Any help would be greatly appreciated! Thanks a lot, guys.
 

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