Alter counterTotal via script call (Yanfly's Counter Control)

Hey peeps,


so I was trying to alter the total counter of an actor via a scriptcall. Sadly the total counter number is not stored in the battler, or at least I don't find it, so I cant just go with "actor.counterTotal = 3" or something like that. There is a function "actor.counterTotal()" which returns the total number of counters a battler has per turn, but I haven't found a function to set, add or alter it in any way.


I have tried functions like "actor.setCounterTotal(3)" and so on, but I didn't seem to guess the right function.


I have also looked through the proto functions, but no success. I have also looked through the .json data to find any hints but no success either.


So if anyone of you knows "the" function or a way to alter the total number of counters per turn, please let me know 🙂


Romepizza


edit: I'm asking because Yanfly tends to provide her plugins with functions like that to give us developers maximum control over our game. I would be surprised if she didn't do so here.

Original thread: https://forums.rpgmakerweb.com/threads/alter-countertotal-via-script-call-yanflys-counter-control.73732/