Chaos Project

RPG Maker => General Discussion => Troubleshooting / Help => Topic started by: Magus on April 29, 2014, 11:53:29 am

Title: I'm rusty: Dealing with ATK and DEF directly.
Post by: Magus on April 29, 2014, 11:53:29 am
Hey everyone, I've got a quick help need.

Can anyone suggest script calls that would let me increase  ATK and PDEF of a weapon?    (I'm using blizz-abs).

Example:  Main character is using a weapon with "FIXED" check.  He conducts training.   I want to increase ATK not STR. I am annoyed that rpg maker xp doesn't just stick with the basic stats of ATK, DEF, MAG, MDEF, SPEED. 

Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: G_G on April 29, 2014, 11:57:29 am
Weapons already have an ATK property as well as a PDEF. Which is Physical Defense.

$data_weapons[ID].atk = 10
$data_weapons[ID].pdef = 10
Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: Magus on April 29, 2014, 12:54:18 pm
Thanks, I appreciate it.
Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: Blizzard on April 29, 2014, 02:58:38 pm
Keep in mind that this change doesn't get saved.
Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: Magus on April 29, 2014, 04:12:10 pm
Ouch. So this is only a temporary boost?  Well, good for transformations, but I guess I'll just have to find someway to increase only the core stats:

Attack and defense for the fixed weapon. 
Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: G_G on April 29, 2014, 04:30:55 pm
Save the weapon to Game_System, just modify the Scene_Save/Load script.
Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: Blizzard on April 29, 2014, 05:14:07 pm
That's not really a good way either, because it will mess up saved games if the database weapons are changed.
Title: Re: I'm rusty: Dealing with ATK and DEF directly.
Post by: G_G on April 29, 2014, 05:43:34 pm
I meant save the attack and defense properties and when he loads them, re-add them to whatever weapon he chooses.