- Joined
- Apr 4, 2021
- Messages
- 12
- Reaction score
- 4
- First Language
- español
- Primarily Uses
- RMMV
Hello, I am working on a script, within a common event I have managed to save the values of max HP, max MP, ATK, DEF etc. of an enemy in battle, however I don't know how to do this with the player's stats
below the script:
I'm just getting started with scripting, so I'm not sure if "gameParty.members" is fine.
Thanks!!
below the script:
let nxtTrgt=$gameTroop.aliveMembers()[0];
$gameVariables.setValue(1,[nxtTrgt.mhp,nxtTrgt.mmp,nxtTrgt.atk,nxtTrgt.def,nxtTrgt.mat,nxtTrgt.mdf,nxtTrgt.agi])
let prota=$gameParty.members(0); <<<NOT WORK
$gameVariables.setValue(2,[prota.mhp,prota.mmp,prota.atk,prota.def,prota.mat,prota.mdf,prota.agi]) <<<NOT WORK
I'm just getting started with scripting, so I'm not sure if "gameParty.members" is fine.
Thanks!!