Basically this $gameActors.actor(X).addParam(X,X) but for each actor available in the game.
MV .addParam but for each actor
Javascript/Plugin SupportHi again! ^^
You mean for each party member, right?
You mean for each party member, right?
$gameParty.members().forEach( member => member.addParam(paramId, value) )the only thing youcan do is loop through the command with different numbers.
nothing can make different actors get a modification with a single command - it is always a sequence of that command you already have being repeatd.
nothing can make different actors get a modification with a single command - it is always a sequence of that command you already have being repeatd.
I made a loop but it takes some time to fully process since there are about 60 actors in total and sometimes I need to change several parameters.
Nope, for each actor in the game 😀 It's needed for gameplay reasons.
Got it!
So I believe you can do this:
JavaScript:
for(let i = 1; i < $dataActors.length; i++){
$gameActors.actor(i).addParam(paramId, value)
}
But don't know if it will work if an actor was not joined the party. Give it a try and let me know 🙂
Damn, I should have figured it out myself 😀
It works, thx.
Pure javascript loops are so efficient. I had to temporarily increase the game's FPS previously to get rid of delays.
Solved!
It works, thx.
Pure javascript loops are so efficient. I had to temporarily increase the game's FPS previously to get rid of delays.
Solved!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/addparam-but-for-each-actor.140068/