Weapon using MP/TP for each attack

Hello!


I'm using an ABS and I would like the weapons to spend a value/percentage of the actor's MP/TP for each attack. I was planning to rename the MP/TP as "Energy" or "Stamina" and each attack made would spend some Energy/Stamina. It would be really cool if I could set specific values for each weapon separately, because there will be weapons heavier than others, meaning bigger costs to Energy/Stamina. You can take the Dark Souls series as reference for how the system would work.


So, can anyone help me do this? Maybe some explanation about how setting this on the database or maybe a script, whichever is easier.


Thanks in advance!


PS: Oh, and I'm using Falcao Pearl ABS 3.0 if that makes any difference.
script only - and we can't even help you until you tell us what ABS you use (with links), because the solution has to be compatible to your ABS.


By default, equipment only provides bonus points to the actor.


The attack is a skill (usually #1).


Theoretically you can give the attack skill a cost MP/TP in the database, but that cost would be a fixed number identical for all weapons (and even without a weapon equipped)


To have percentage costs, especially different percentages based on weapon, you'll need a script.


I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.


Because you posted in VX Ace I'm assuming that's what you want the script for, you should change your preferred maker in your profile (VX is a different, older maker than VX Ace)
If you want to use percentage based usage costs, you don't really have a need to increase or decrease the maximum amount of MP/TP ever in your game.


Which means you can simply set the maximum MP/TP to 100, and use the default MP/TP cost of skills to denote percentage costs easily.


You can assign any skill for any weapon/armor with the provided note-tags in the ABS script you use as well, so you can have different MP/TP cost for different weapons/armors.
script only - and we can't even help you until you tell us what ABS you use (with links), because the solution has to be compatible to your ABS.


By default, equipment only provides bonus points to the actor.


The attack is a skill (usually #1).


Theoretically you can give the attack skill a cost MP/TP in the database, but that cost would be a fixed number identical for all weapons (and even without a weapon equipped)


To have percentage costs, especially different percentages based on weapon, you'll need a script.


I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.


u posted in VX Ace I'm assuming that's what you want the script for, you should change your preferred maker in your profile (VX is a different, older maker than VX Ace)



Thanks for the answer Andar! I've updated my topic with a link to the ABS I'm using. Now that you've mentioned, I've figured out the "assigning a cost to the #1 attack skill" option, but, as you said, it would be a fixed number. I would like to set a fixed number, but for each weapon separately, not for all weapons... I was thinking about the percentage option, but that wouldn't fit my game as I wanted to, because increasing the maximum Energy (MP/TP) wouldn't benefit the player at all, since the cost is in percentage...

If you want to use percentage based usage costs, you don't really have a need to increase or decrease the maximum amount of MP/TP ever in your game.


Which means you can simply set the maximum MP/TP to 100, and use the default MP/TP cost of skills to denote percentage costs easily.


You can assign any skill for any weapon/armor with the provided note-tags in the ABS script you use as well, so you can have different MP/TP cost for different weapons/armors.



Thanks for the answer Sixth! I was thinking about the percentage option, but I gave up since I'm planning to increase the maximum Energy (MP/TP), thus it wouldn't benefit the player at all, since the costs are in percentage. Also, as you said, I could set a skill for each weapon, but that would mean a number of skills equal to the number of weapons plus the number of standard skills to be used in-game, and I wanted to keep things as clean as possible, because my database always get messy.


Oh, sorry for the off-topic question, but can I pm you about your Basic-AI system for Pearl ABS? Because I have some doubts regarding it's usage but I didn't wanted to necropost in your topic.


@Topic: So, it seems that what I want can only be done by script. I hate to ask, but could anyone make a script like that for me? One where I can assign a fixed MP/TP cost number for each weapon separately, please?

Original thread: https://forums.rpgmakerweb.com/threads/weapon-using-mp-tp-for-each-attack.71838/