(SCRIPT REQUEST) LIMITED ABILITY USE & NO MP

Posts

Pages: 1
For the game I'm making, I need to have it so you can only use a certain ability a few times, before you cannot use it anymore, until the next battle, and you don't spend MP doing this. I'm using RPGmaker VX Ace, so... yeah.
The no MP thing is easy... don't assign any MP cost when you create the skill in the database.
The using a few times is also easy - there's the ability to turn on a switch when a skill is used. Do this. Then in the battle event (under troops) have a page become active when the same switch is turned on. On that page have a conditional branch that checks a variable. If the variable = the amount of uses that skill can have, then have it remove the skill in question (or swap it with a dummy one that cannot be used in battle). In the else case of that conditional branch, put in a variable that adds 1. After the branch turn off the switch.

What this does is each time that skill is activated, a variable will add +1 to a count of uses. When it hits a certain amount, then the skill will be removed/swapped with another skill and be unable to be used.

Out on the map make an event that returns the skill to the player (swaps back) and sets the variable count to 0 so that it can be used every battle.

Voila!

...or what the ninja linked.
Yeah! Oh come on, we're all too spoiled to Ruby these days! You are a true maker, Liberty.
How come I didn't even think about eventing?
NeverSilent
Got any Dexreth amulets?
6299
You could also assign Common Events to the skills and have them count down an individual variable value, then let it remove/replace the skills when the variable reaches 0. That way, you won't have to insert the same battle events into every troop.


Scripting is way too mainstream. Go with ye olde eventing.
Max McGee
with sorrow down past the fence
9159
This is actually what you need: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/

Probably WAY less clunky than eventing (sorry guys).
SunflowerGames
The most beautiful user on RMN!
13323

Have it cost 1 MP, but the player's max MP is 3. MP can't be regenerated until after battle.
Max McGee
with sorrow down past the fence
9159
I think he wants a separate use counter per ability, rather than them drawing from a common pool like MP.
author=Max McGee
This is actually what you need: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/

Probably WAY less clunky than eventing (sorry guys).


Exactly this!
Pages: 1