RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VX] Try to answer this

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 47
Por la Horda
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:
« Last Edit: July 05, 2013, 08:03:56 PM by josemanupagon »

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
&&&&&&&&&&&&&&&&

**
Rep: +0/-0Level 47
Por la Horda
 :rmvx: I only use Rpg Maker Vx! So RMVXA scripts aren't useful for me.

Thanks in advance!

*
A-pow 2015
Rep:
Level 81
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.How can I help you? :Da^2 + b^2 = c^2Secret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
I'm not sure, but I think Yanfly's Melody engine has something like that.
http://yanflychannel.wordpress.com/rmvx/melody/

**
Rep: +0/-0Level 47
Por la Horda
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!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
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.

**
Rep: +0/-0Level 47
Por la Horda
Credits: Orochii
I've been answered, and the script is fully compatible with Tankentai's SBS.
I want to share it with you.

Code: [Select]
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.
« Last Edit: July 06, 2013, 04:40:32 PM by modern algebra »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
I edited your post to add code tags, so that people can copy the code directly. Thank Orochii for us!