- Joined
- Apr 5, 2018
- Messages
- 5
- Reaction score
- 3
- First Language
- Portuguese
- Primarily Uses
- RMMV
Hiya!
I'm very fine working with RPG Maker, however, programming is DEFINITELY not my forte. I have studied a few of C++, tho.
Anyway, I'm creating a battle system where, when an enemy attacks you, if you hit the action button on the trigger/right time (the "right time" might be when the SFX reproduces, or when the character flashes) you block some of the damage. The same works for attack - on the right time, you do some extra damage. Spells (damage or healing) have that, too. Whenever you do a "perfect hit/block", there's this resource bar that increases by 1.
I REALLY don't know how to code in javascript, so I need your help guys. How do I do it? I also have to show that resource on screen. I only know "the logic" behind it, and with my coding experience (almost 0), it would be something like this. I also do understand that this may be wrong or just pointless.
When action occurs:
-When [trigger] occurs:
--if: [action button]
--then: [defense/attack variable applies] and [resource +1]
--else: null
Note that every character has a way to increase the said resource. Protagonist increases when perfect hit or perfect block. Ally X increases when perfect hit or takes a hit. Ally Y increases when perfect heal, spell damage or evade (evade is like block but not quite) and so on.
Extra question: I don't know if it's the right board (if so, ignore it), but how do I customize my battle screen layout? applying the new resource bar?
I'm very fine working with RPG Maker, however, programming is DEFINITELY not my forte. I have studied a few of C++, tho.
Anyway, I'm creating a battle system where, when an enemy attacks you, if you hit the action button on the trigger/right time (the "right time" might be when the SFX reproduces, or when the character flashes) you block some of the damage. The same works for attack - on the right time, you do some extra damage. Spells (damage or healing) have that, too. Whenever you do a "perfect hit/block", there's this resource bar that increases by 1.
I REALLY don't know how to code in javascript, so I need your help guys. How do I do it? I also have to show that resource on screen. I only know "the logic" behind it, and with my coding experience (almost 0), it would be something like this. I also do understand that this may be wrong or just pointless.
When action occurs:
-When [trigger] occurs:
--if: [action button]
--then: [defense/attack variable applies] and [resource +1]
--else: null
Note that every character has a way to increase the said resource. Protagonist increases when perfect hit or perfect block. Ally X increases when perfect hit or takes a hit. Ally Y increases when perfect heal, spell damage or evade (evade is like block but not quite) and so on.
Extra question: I don't know if it's the right board (if so, ignore it), but how do I customize my battle screen layout? applying the new resource bar?

