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.