RPG Maker Forums


Salutations, developers!




One of my characters is a mage gunner; her pistol is fueled by her magic power, dealing Magic damage at each strike. However, due to balancing issues, this shooting power has to be limited by some sort of ammo.


When using an Arcane Pistol, the weapon has these notetags:

<Replace Attack: 150> // 150 is the "Shot" skill, with it's own damage formula.
<Replace Guard: 151> // 151 is the "Reload" skill.
What i want (but don't know how to) do is the following:

  • An "Ammo" State, which stores a certain number of "bullets"
  • The "Shot" Skill requires the "Ammo" state to be availabe, consumes one "bullet" and, if the "bullet" amount in the state reaches 0, removes the state (thus making the "Shot" unavailable)
  • The "Reload" skill applies the "Ammo" state and sets it's "bullet count" to, let's say, 5.
  •  



Could someone please help/guide me in this work? I'm still pretty green in this "variable scope" thing, and i would prefer to use a state-stored variable, instead of a global one, for this.

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top