I'm trying to figure out how to pull up a player's ATK without the stat increase from the equipped item.
something like:
$game.actors[id].atk - $game.actors[id].equip_id_atk(0)
or something to that effect.
I'm using common events for a gear crafting system. Everything is in place, but I'm trying to add a little flair that shows if the item is an increase or not. As it is now, you have to go into your equipment to see what you're using and compare it to the craftable item. If it's an improvement, then you can craft it knowing you won't be wasting materials if it's not an upgrade. I'm trying to bypass this.
I can pull up the player's current atk with a Control Variable/Game Data, but that doesn't do me any good by itself.
There is a long way around this, but it's way too extensive. There's got to be a better way.
If there is a $game.actors[id] that will return just the player's current base stat for that level, that would be awesome.
Or a $data_weapon[id]* that returns the atk I can subtract from my Control Variable, that would work too.
*not sure if this is the right code
Thanks!
Edit:
I believe what I'm trying to do is turn this:
something like:
$game.actors[id].atk - $game.actors[id].equip_id_atk(0)
or something to that effect.
I'm using common events for a gear crafting system. Everything is in place, but I'm trying to add a little flair that shows if the item is an increase or not. As it is now, you have to go into your equipment to see what you're using and compare it to the craftable item. If it's an improvement, then you can craft it knowing you won't be wasting materials if it's not an upgrade. I'm trying to bypass this.
I can pull up the player's current atk with a Control Variable/Game Data, but that doesn't do me any good by itself.
There is a long way around this, but it's way too extensive. There's got to be a better way.
If there is a $game.actors[id] that will return just the player's current base stat for that level, that would be awesome.
Or a $data_weapon[id]* that returns the atk I can subtract from my Control Variable, that would work too.
*not sure if this is the right code
Thanks!
Edit:
I believe what I'm trying to do is turn this:
- change = @item.params[param_id] - (item1 ? item1.params[param_id] : 0)