- Joined
- Nov 26, 2013
- Messages
- 196
- Reaction score
- 6
- First Language
- English
- Primarily Uses
I'm using Yanfly Skill Cost Manager http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-cost-manager/
I'm asking for what the normal ruby code would be for this to see if it's compatible with this script
(I would use Mr. Bubble Blood Magic but that doesn't support custom formulas, like skill exp affecting the cost of a skill and whatnot)
I'm trying to make it so that a skill will cost HP if state 26 Blood Magic is on, and will cost MP if state 26 is off.
I'm thinking something like
<custom cost perform>(self.hp -= (10 * self.xstat.hpc) / 100 if self.state(26)?) (self.mp -= (10 * self.xstat.mpc) / 100 if !self.state(26)?)</custom cost perform>in the comment box.
Mind you, self.hp -= (10 * self.xstat.hpc) / 100 and self.mp -= (10 * self.xstat.mpc) / 100 do work individually.
Don't mind the xstat.hpc and the xstat.mpc. Those are custom stats from Crystal's Extra Stats that mean HP Cost and MP Cost because I was having problems with the integer function of the regular mcr and whatnot and are irrelevant to my question.
How would I go about what I'm trying to make?
I'm asking for what the normal ruby code would be for this to see if it's compatible with this script
(I would use Mr. Bubble Blood Magic but that doesn't support custom formulas, like skill exp affecting the cost of a skill and whatnot)
I'm trying to make it so that a skill will cost HP if state 26 Blood Magic is on, and will cost MP if state 26 is off.
I'm thinking something like
<custom cost perform>(self.hp -= (10 * self.xstat.hpc) / 100 if self.state(26)?) (self.mp -= (10 * self.xstat.mpc) / 100 if !self.state(26)?)</custom cost perform>in the comment box.
Mind you, self.hp -= (10 * self.xstat.hpc) / 100 and self.mp -= (10 * self.xstat.mpc) / 100 do work individually.
Don't mind the xstat.hpc and the xstat.mpc. Those are custom stats from Crystal's Extra Stats that mean HP Cost and MP Cost because I was having problems with the integer function of the regular mcr and whatnot and are irrelevant to my question.
How would I go about what I'm trying to make?
Last edited by a moderator:
