Stat-Based Variables Excluding Equipment

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
84
Reaction score
55
First Language
English
Primarily Uses
Hi folks, I'm kinda stumped on how to create a conditional that checks a character's stat without calculating their equipment. In particular, I don't want a weapon's attack value to contribute to the character's attack variable, so a more accurate "strength check" can be made without encouraging weapon-swapping.

I also don't want to have to unequip the character and force them to re-equip anything. Thanks!

Edit: After a couple of hours of banging my head against the wall, I figured out that you can at least run a script call to set your weapon's damage to a variable, then I just subtracted it from the total. All set now, I think.
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Another easy way is to check the hero's class. Or I have "2 copies of 1 hero" in the database, one empty to show the base stats.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,252
First Language
Spanish
Primarily Uses
RMVXA
If its in your damage formula box its a.paramBase(2)
no, because "a" is the initiator of the action in battle, actor or enemy alike, and enemies don't have that function I think.
"actor" will always refer to *actors* themselves, from the database, which are the only ones you'd want to differenciate final attack from raw attack without weapons.
enemies don't have weapons, by default.
 

OnslaughtSupply

Ssshhh...
Veteran
Joined
May 14, 2017
Messages
731
Reaction score
764
First Language
English
Primarily Uses
RMMV
The answer I gave was for damage formula and the link provided has the calls for parameters and such, trust me it works just like a.atk * 2 - b.def works for both enemies and actors alike, but with an enemy you are always dealing with flat parameters because like you said, they don't have weapons.
 

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
84
Reaction score
55
First Language
English
Primarily Uses
I was searching all over the place for something like actor.paramBase lmao

Thanks though. The good news is that I do want other gear to contribute to the check, just not weapon, so my solution still does what I need
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,252
First Language
Spanish
Primarily Uses
RMVXA
actor.param(n) would still bring you the whole stack.
paramBase() is called by param(), but you can still call it directly.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top