Yanfly's Element Core

Hi, I am also using Yanfly's Element Core plugin and was wondering if there was a way to alter an actor or target's Element Rate via a Javascript function or formula. The standard RPG Maker traits and Yanfly's default notetags, such as <Force Element x Rate: y%> aren't flexible enough for my needs.

I've tried something as simple as the following to no avail...
<Custom Apply Effect>
target.ElementRate(4) += 1;
</Custom Apply Effect>
Hi, I am also using Yanfly's Element Core plugin and was wondering if there was a way


Spoiler: Image
hqdefault.jpg

Um Thread Jacking is kinda against the rules here.

To Quickly Answer your Thread Jack,
It's not as easy as it sounds, Yanfly element Core mostly looks at states, and treats the note tags you input as a kind of "Trait". This means all of this data is preloaded and calculated based off the Actors Classes, States and Equips.
The Code you used in that tag, which looks like it comes from Damage Core or something is actually invalid for several reasons.
1. you are not actually changing the element rates, they are stored within the DataBase and the game uses a function to calculate the total.
2. ElementRate is not a function, JS code is case sensitive
3. you are trying to modify the return value of a function. this will probably throw errors( Ive coded in JS for a while, i don't actually know what happens if you try this!)

in short Element Core and MV traits themselves do not allow this

@staf00 Do not hijack someone else's topic, but make your own instead. As the topic you posted in was pretty recent and hadn't solved OP's question yet, I've moved your post and @Fornoreason1000's answer to you to a new topic.

Assuming you are still talking about the Burning effect, where the afflicted becomes less resistant to fire as time goes on. the best way to do this is to create a stack of states represent each interval.
<Apply Custom Effect> only runs when you first apply the state. we do want want this, we actually want to wait until the 100% state leaves.
to this end the note we want is
Code:
<Custom Leave Effect>
target.addState(23); //next stacking state
</Custom Leave Effect>


im going to use a special state that will drop the targets Max HP to Just 5%, which will rise back up to 100% in 5 turns.
for 5 turns i'll need 5 states.

Spoiler: Screenshot
t.png

each state becomes progressively weaker, the states time out in just one turn and when they do, a weaker form is added.
this continues until the weakest form times out.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-element-core.103762/