Formula box how do you use Percentages?

Status
Not open for further replies.

ArcaneEli

Mage of Thunder
Veteran
Joined
Mar 24, 2012
Messages
205
Reaction score
35
First Language
English
Primarily Uses
Let's say that ActorA has 100str, and EnemyA has 50def.

inside the Formula box it's just a simple

a.str * 2 - b.def * 1 = STUFF

   I'm wondering is there a way to

a.str * 2 - b.def * 1 - 25% = STUFF

Cause I can't figure out percentages, and doing demicals is very tedious and alot of work.

Also these sideways profile pics are messing with me...

JK FIGURED IT OUT i'M STUPID...

oh thanks for the answers as well
 
Last edited by a moderator:

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
785
First Language
English
Primarily Uses
RMMV
You have to do decimals or fractions. But the main question is 25% of what, since 25% of nothing is nothing.
 

Touchfuzzy

Rantagonist
Staff member
Lead Eagle
Joined
Feb 28, 2012
Messages
7,295
Reaction score
8,904
First Language
English
Primarily Uses
RMMZ
...Decimals are percentages? Like they are functionally equivalent.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
Is this what you want?

Code:
(a.str * 2 - b.def * 1) * 0.75
 

ArcaneEli

Mage of Thunder
Veteran
Joined
Mar 24, 2012
Messages
205
Reaction score
35
First Language
English
Primarily Uses
Ok now there isn't enough room in the Formula box for what I want lol...

I've checked the master script list and I didn't see anything that let's you Artifically extend the Formula box ie: notetags, seperate Text file etc...

So is there any way to extend da Formula box?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
So is there any way to extend da Formula box?
No, but you can call functions from inside the formula box. So you can make a larger process into an RGSS script function (request help if you can't program yourself), add that script function in the script editor, and then call it from the damage formula box.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top