Changing an Event's Sprite Tone

Hi, all!

I've been using Galv's simple crops plugin, with my own personal tweak to allow the crops to wilt if they aren't watered. The plan was to change the event graphic's tone to a dull yellow-ish color. It seems that using the "setColorTone" sprite function could do the trick, but I really can't figure out how to make it work for the current event's graphic (assuming it's possible and I'm not just crazy).

Izyees seemed to do something similar here:
https://forums.rpgmakerweb.com/index.php?threads/set-sprite-color-tone-error.52890/#post-522208
But I can't even figure out how to replicate this, let alone change the tone for only one sprite. 🙁

Any help would be greatly appreciated! 🙂
You can change the tone/tint on an event sprite using an event command (or might be a move route command). That means you can find the code behind it in the rpg_objects.js file, in the Game_Interpreter class or the Game_Character / Game_CharacterBase classes.

Be careful though - what you are changing is the source image. That means ANY event using that image will change.

You would be better off having two different images and using a self switch to condition a second event page, with one image on the first page and the other on the second.

You didn't provide a link to the plugin you're using. Are you certain it doesn't already provide for such a thing?
Thanks for the reply, Shaz!

Oops... Good point on the tone changing for everything with that image! I guess that wouldn't work, since players can plant multiple of the same crop.

Your suggestion is much easier than what I was trying to do! 🙂 I added some tweaks to the code (the plugin loads the images instead of the events) to switch between the two images like you suggested. It worked like a charm! Yay!

Thanks so much for the help! 😀 This thread can be closed.

Original thread: https://forums.rpgmakerweb.com/threads/changing-an-events-sprite-tone.75085/