Base parameters in damage formula

Lonewulf123

Veteran
Veteran
Joined
Oct 13, 2014
Messages
300
Reaction score
89
First Language
Enlish
hello,

Is it possible to pull an actor’s base stats (for instance the raw attack stat without factoring equipment) into a damage formula?

I would like utilize both “a.atk” plus the raw number in a battle formula, but I don’t know how easy that would be to accomplish.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ
Yes you can, it's called the base parameter (before factoring anything, so calculating only from the stats gained from levels). Use this:

Code:
a.paramBase(x)

// x represents the parameter:
//    - 0: max hp
//    - 1: max mp
//    - 2: physical atk
//    - 3: physical def
//    - 4: magical atk
//    - 5: magical def
//    - 6: agility
//    - 7: luck
 

Lonewulf123

Veteran
Veteran
Joined
Oct 13, 2014
Messages
300
Reaction score
89
First Language
Enlish
Yes you can, it's called the base parameter (before factoring anything, so calculating only from the stats gained from levels). Use this:

Code:
a.paramBase(x)

// x represents the parameter:
//    - 0: max hp
//    - 1: max mp
//    - 2: physical atk
//    - 3: physical def
//    - 4: magical atk
//    - 5: magical def
//    - 6: agility
//    - 7: luck
Thank you so much!
 

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,070
Members
137,577
Latest member
SadaSoda
Top