Jump to content


Photo

Ruby/RGSS3 questions that don't deserve their own thread


  • Please log in to reply
1943 replies to this topic

#1941 WCouillard

WCouillard

    Sanubian Menace

  • Member
  • 1188 posts
  • RM Skill - Jack of All Trades

Posted 09 December 2016 - 10:07 PM

Looking for all the places I would have to change the base VX Ace codes for Parameters to make them ADDITIVE and not MULTIPLICATIVE.

 

What I mean is, let's say we have an accessory that increases HP by 100%, worn on an actor with 500 Max HP. His Max HP would now be 1,000. Now let's equip another. His Max HP is now 2,000, instead of 1,500, which is the way I'd like it to be.

 

It should only increase the BASE value.


My Completed Scripts: http://pastebin.com/u/WCouillard

Final Fantasy Discovery: http://www.rpgmaker.net/games/4071/


#1942 Traverse

Traverse

    Advanced Member

  • Member
  • 281 posts

Posted 10 December 2016 - 11:45 AM

Looking for all the places I would have to change the base VX Ace codes for Parameters to make them ADDITIVE and not MULTIPLICATIVE.

 

Parameters do add. I'm sure you've already taken a look at the param_plus method in Game_Actor. And if you've checked the actual parameters array of the items, you'll see they comprise only the flat stat values for the eight stats you see in the databse.

 

What you're thinking of are Features. Whether those values stack multiplicatively or additively depend on the actual feature itself. In the case of parameter change features, they're positive percentages, so of course they multiply. Otherwise when wearing something that doubles the stat (200%) and something that halves it (50%) you'd get 250% stat instead of 100%.

 

What you REALLY want is not just to make them stack additively, but change how those percentage numbers are seen by the engine. I suggest you take a look at the features_ methods in Game_BattlerBase, particularly features_pi and param_rate. Good luck.


Edited by Traverse, 10 December 2016 - 12:04 PM.


#1943 WCouillard

WCouillard

    Sanubian Menace

  • Member
  • 1188 posts
  • RM Skill - Jack of All Trades

Posted 10 December 2016 - 11:54 PM

Yep, got it. :D Thanks for pointing me in the right direction.


My Completed Scripts: http://pastebin.com/u/WCouillard

Final Fantasy Discovery: http://www.rpgmaker.net/games/4071/


#1944 TheYungVxAce

TheYungVxAce

    Advanced Member

  • Member
  • 135 posts
  • RM Skill - Pixel Artist

Posted 03 March 2017 - 10:43 AM

How do change the font size of the number value of items? I changed the default font size, but for some reason it doesn't affect the the number value.


Edited by TheYungVxAce, 03 March 2017 - 07:35 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users