I want to change the mp cost of all skills ingame, like a state or other stuff like that.
e.g : Divine Faith: Reduces all mp cost by 5. It lasts for three turns.
If anyone knows a script or whatever, please, post it here, it would be helpful.
I hope this is clear enough.
Thanks in advance!
Please, for Rpg Maker Vx, not Ace! :blizj:
The name of that Anime is Boku no pico.
http://www.rpgmakervxace.net/topic/8457-element-cost-rate/
:rmvx: I only use Rpg Maker Vx! So RMVXA scripts aren't useful for me.
Thanks in advance!
I'm not sure, but I think Yanfly's Melody engine has something like that.
http://yanflychannel.wordpress.com/rmvx/melody/
But Yanfly's skill scripts...
are them compatible with Tankentai's Battle System?
I don't think so, but I have no idea about scripting, so I don't know!
Well, some of his scripts definitely are compatible, and some aren't. You should probably try it and then we can deal with any incompatibility that arises.
In most cases, it is less work to make two existing scripts compatible than it is to write a brand new script.
Credits: Orochii
I've been answered, and the script is fully compatible with Tankentai's SBS.
I want to share it with you.
class RPG::State
def cost_change
(/<AUMENTO_COSTO\s+(\d+)>/ =~ @note) ? $1.to_i : 0
end
def cost_less_change
(/<DISMINUIR_COSTO\s+(\d+)>/ =~ @note) ? $1.to_i : 0
end
def cost_change_p
(/<PORCENTAJE_COSTO\s+(\d+)>/ =~ @note) ? $1.to_i : 100
end
end
class Game_Battler
def calc_mp_cost(skill)
cost = skill.mp_cost
cost /= 2 if half_mp_cost
@states.each{|i|
cost = (cost * $data_states[i].cost_change_p)/100
cost += $data_states[i].cost_change
cost -= $data_states[i].cost_less_change
}
cost = 0 if cost<0
cost
end
end
<AUMENTO_COSTO número> Where número is a number at your choice, it will raise the mp cost by x.
<DISMINUIR_COSTO número> Where número is a number at your choice, it will lower the mp price by x.
<PORCENTAJE_COSTO número> Where número is a number at your choice, it will multiply the mp cost by x%.
e.g : <AUMENTO_COSTO 5> All skills will cost 5 extra mp.
<PORCENTAJE_COSTO 40> All skills will cost 60% less mp.
<PORCENTAJE_COSTO 120> All skills will cost 20% more mp.
<DISMINUIR_COSTO 10> All skills will cost 10 less mp.
I edited your post to add code tags, so that people can copy the code directly. Thank Orochii for us!