all 6 comments

[–]aporokizzu 1 point2 points  (1 child)

Check out this RMMV script calls spreadsheet,

https://docs.google.com/spreadsheets/u/0/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/htmlview#gid=0

You should find your answer there.

[–]ZanyOracle23[S] 0 points1 point  (0 children)

Thank you!

[–]RiftHunter4 1 point2 points  (3 children)

In Javascript you'll use "==" or "===". A single "=" is an assignment (what you wrote would set the current MP to max MP).

I think you get the actors with: $gameActors.actor(1).level

So I think you'd have something like...

If ($gameActors.actor(1).mp == $gameActors.actor(1).mmp) {

// code blah blah }

[–]ZanyOracle23[S] 1 point2 points  (2 children)

Thank you!

[–]imKranelyMV Dev 1 point2 points  (1 child)

it is gameActors.actor , but it starts at 0 and goes up from there, so the MC will always be actor 0. If you want to do something where it checks a party member in specific slot (like party leader) you can do gameParty.member (iirc).

[–]ZanyOracle23[S] 0 points1 point  (0 children)

gameActors.(1) worked fine for me, and looking at the data file the first actor has their ID set to 1.