MZ (MOSTLY SOLVED) How can I effectively change Effekseer's Point of Attraction and Dynamic Parameters on the MZ end?

EDIT: I HAVE SOLVED IT WITH THE HELP OF FRIENDLY PEOPLE ON DISCORD. Thank you snakekillerx and bass2yang for your help!

Here is how to change Point of Attraction and Dynamic Inputs respectively in MZ: on the Effekseer end, there is a guide on the Effekseer website to set up dynamic inputs on your own, and the Forcefields section has information on setting up points of attraction.

SceneManager._scene._spriteset._animationSprites[X]._handle.setTargetLocation(x,y,z)

SceneManager._scene._spriteset._animationSprites[X]._handle.setDynamicInput(index,value)

X is the index of the animation, starting at 0 and going up from there. Your oldest or only animation is always 0. If you run this javascript while your effect is in existence, you can change the dynamic inputs or Point of Attraction (aka "TargetLocation") in MZ during its playback.

Also, at time of writing, the EffekseerForRPGMakerMZ_Ex plugin which lets MZ use 1.7 effekseer features breaks points of attraction when the DistortionEnabled is set to "true." It breaks them by nailing all points of attraction on anything to the center of your camera for some reason: if you disable it, the point of attraction is set to the origin of the particle instead. If you have this plugin, try setting it to "false" instead or just not using points of attraction.

Also, frustratingly, the Effekseer coordinate grid is kind of its own thing that doesn't map cleanly onto pixels or the map grid, so have fun converting if needed. A unit on the map grid seems to be roughly 1.575x larger than the effekseer grid at default animation scale/grid size, but this is not an exact value.

I have not worked out extremely precise or optimal usage of anything here, so the exact implementation is up to you. If anyone knows very efficient ways of doing the things above every frame (aside from just having some parallel processes), or knows better methods for various things like shooting particle beams from one moving event/player to another event, doing them *as* a particle animation spawns instead of after, or has a fix for the EffekseerForRPGMakerMZ_Ex issue or has other information on good usage of this functionality, let me know.

The original post is below:




Having recently fallen in love with Effekseer, I'd like to heavily use custom Effekseer particles in MZ: in combat, out of combat on the map, and most importantly, I'd like to have aspects of the particles adjust based on positions of events and the player in MZ. Glowy stars that move away from you when you approach them via effekseer's forcefields feature, homing laserbeams like the gif below that originate from one point and home in on a moving event using effekseer's point of attraction/forcefields features (see the gif below which has an edited stock effekseer animation), making particles that turn red when a player walks near them and go back to normal when they walk away (could probably feed some distance-based math into their color), that sort of thing. It would make a couple of projects a lot prettier if I could pull this off. Making the particles in effekseer is the easy part, i love putting trails on glowing balls, and it didn't take much work to get particles to appear at all, but getting the advanced functionality to work in MZ has been maddening and fruitless.

I can get particles to spawn from an event or relative to an enemy in-battle, but that's it: the point of attraction defaults to the center of the screen, meaning that's where everything homes in on if I have that type of force field effect enabled. The screenshot below has an example of this, where I put the particle animation on that crystal, rigged it up to flash pink and play a sound along with the animation, and then particles came in from offscreen (which is what i wanted) and then gathered at the center of the screen (not what i wanted) instead of the crystal currently flashing pink several tiles to the left. (EDIT: This is because of a plugin, see the top edit.)

RPGMaker Forum Gif1.gif
1735830694356.png



But currently, I have no idea how to get this kind of dynamic particle behavior, and I found next to no resources on here or google on how to pull it off. My javascript knowledge is pitiful (i can make a for loop and that's it), but I could probably beat something someone else already made with a hammer until it works for my cases, which I'm guessing is what I'll have to do. The best thing I found was a years old thread where someone may have kind of sort of done what I wanted through a plugin they made but didn't share, and I'd like to see if anyone here knows how I can achieve effects similar to the video linked in this thread since that's actually pretty much the kind of interactivity I need. https://forums.rpgmakerweb.com/index.php?threads/effekseer-setdynamicinput.140084/


This is my full list of plugins for completeness: I needed one of the visustella plugins (battle core iirc) to get easy particle vfx animation functionality during front facing battles, and some of these features are nice, but I'm not overly attached to any of them aside from getting easy facing combat particles.

1735833037473.png


TL;DR: how do i glue a point of attraction to a man so that my trained attack laser dogs can go chase after him. they are already trained, i just need to give them something concrete to chase after instead of this arbitrary spot in the middle of my screen
Bumping since it's been 72 hours with no responses (understandable since i don't know how many people actually use effekseer or ever tried doing this specific thing). I worked on some other MZ stuff in the meantime, and the good news is that I can now use the script call references pinned in this forum for extremely basic modifications to things like TP, but I still have no idea where to start on messing with animations in this way since there doesn't appear to be anything in there for picking a specific animation and altering its properties when/after it spawns in the scene.
Bumping one last time before giving up. If anyone knows how to use that setDynamicInput thing they mentioned in the other post i linked, then please share that knowledge with the world.

Original thread: https://forums.rpgmakerweb.com/threads/mostly-solved-how-can-i-effectively-change-effekseers-point-of-attraction-and-dynamic-parameters-on-the-mz-end.174366/