Aramis Sprite Zoom

@ShadowDragon Thanks for the info. I didn't realize you could nest any generic variable into the script like that, but it makes sense, and I see now how one can use variables to do that.

That gives me another question, though:
Would there be a way to use Javascript to make the event calculate a percentage of the player's current size? Instead of "shrinking the player by 0.1," I'd rather implement something like "shrinking the player by 10% of their current size," which I think would require some Javascript evaluations.

Basically, the logic would be:
1. set a variable where 100 = normal size, since RPGMV likes to work with integers and I need some wiggle room for multiplication (so probably $gameVariables.value(x)/100, right? so that 100/100 = 1?)
2. some event happens in the game world (such as a timer), triggering the shrink event (these I know how to do)
3. the shrink event takes that variable and multiplies it by 0.9 and rounds to an integer (this is the part I don't know how to do -- I'm not sure what the syntax is to have the system evaluate this)
4. the shrink event then evaluates ($gameVariables.value(x)/100) again and sets the SpriteZoom level to that (this is what I just learned how to do, thanks to you!)

Is that about correct?

If you know of any resource to look at that teaches all the JavaScript syntax relevant to RPGMV, also, that would be a great help.
1 = 100 as current size, so if you use, player (0, 1, 30) it grows back to 100%
the -= 0.1 = shrink by 10% (as sample I have given), if yo do -= 0.2
it will shrink by 20% every x seconds.

seconds are a sample, so if you have 2 min to escape, you can calculate
how long it takes to 0.

you can also check the current size or want it be game over if player reaches 0.3.
for example. but I need to dig in the plugin to check that, as I didn't make a test
subject around the event (with or without a timer to shrink).

but it certaintly possible, but I can see if I got time later on.

if noone replies, I try to help you, so I wish you for now good luck on your project.
i cant seem to get this plugin working at all i even copied the scripts from the help bar and they did nothing, could it be that im using MZ? or is it out of date? im not fully sure

heres a screenshot of what im running

1701208788146.png
@BourbonChicken3206 its for MV, might work in MZ, however, if it doesn't
thats because the code dont exist in MZ, so you might need some adjustments
to the plugin or function to target the correct part, so it require a port.

as I dont own MZ, I cannot help you on it, but the change might not be huge.
you can try to use FOSSIL and see if it does work by than, but I cannot guarantee
it though.

Original thread: https://forums.rpgmakerweb.com/threads/aramis-sprite-zoom.52546/