MZ How do I affect a Partymember instead of Taret ID? ElementStatusCore

(kinda feel like this is the wrong place, pls enlighten me if so)

Hi, I want to make an Event that gives a designated Partymember a Random Element Trait (ElementStatusCore)

buuuuut the Plugin asks for a Target ID aaaaand if i tried that it didn´t work soooo i was looking for eather changing the Element trait via JS to put it in a script or something els i could put in to make this work...

buuuuut i found nothing that worked so I once again Ask the Universe for Help in a Topic which could probably be solved by me studing JS more :'D

Thanks in advance! ( >n<)人

1750971679664.png
it asks for ids but, but that array has strings for referencing battlers instead of ids. if thats how it works, then you might be able to use "$gameActors.actor(x)" instead of "$gameParty.members()[0]". replace the x for the id of the actor
but then i would endup with "Insert Actor X" not "insert Partymember X" right? coz that´s my problem right now :hswt:
oh, i see what youre asking now. im not familiar with the plugin so i assumed that what you shared was a working version of it being used and not that its the attempt for what you want.
try "$gameParty.members()[0].actorId()" and see if it does anything. The array in the VS page's example has strings, but theres a chance that theyre being evaluated instead of being ran though Number()
Nah, that gives me a Crash but good idea tho.
...

SOLVED IT:

- I made a Variable that grabs the Actor ID of the Partymember and put in -> $gameVariables.value(variableId)

WHUUU!!!

Ok ~ I did some testing and it works... 1/5 times... on the same promt. I dunno why but if this is how itll be then i just add text that it "sometimes works" xD
I gave it a shot in the VS sample project and $gameParty.members()[0].actorId() worked fine for me. Every time i triggered the event, the elements for the the party leader was randomized. what exactly was the error for the crash you got? Can you show a screenshot?
1751013250785.png

1751013454815.png
Now $gameParty.members()[0].actorId() is working just fine?!
Ok, I tested around and it works as fine as my Variable version worked.
I feel like the problem is the "Random" part. Like 90% of the time i get "neutral" even if the char had an element before >:c well, my question has been Answerd now it's bugfixing i Guess.

oh, the error i got was:
1751042619058.png

It gave me this error even tho i was in (JS) but it did all sorts of wierd stuff. the game also gives me a twice as high DMG roll whenever i go into combat for some reason. Maybe all my wierd "lemme try some stuff" finaly pays its due and slowly breaks
I ended Up with a third Method to Put my Acots IDs in variables and then to a "take a random number that equals one of the 16 Elements" -> 16x If number then you get this.
ONLY to find out that i had typos in the Elemental Traits ... so some worked and some didn´t.

but it has bee solved now (around 3x )

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-affect-a-partymember-instead-of-taret-id-elementstatuscore.178564/