Poison

Very simple but I can't seem to do it.


I want to change it so when you walk whilst poisoned it flash's green instead of red, also would mind changing how many steps till the effect takes place.


Hoping I'm being loose and the answer is obvious.
The amount of steps is defined in the database for the state itself, press F9, go to states and change it from there.


For a different color for flashing,you will have to open rpg_objects.js in the 'js' folder of your game folder, navigate to line 888, at least for me, don't know about any changes for different versions, but you can also search the file for the line itself which looks like this:


this.startFlash([255, 0, 0, 128], 8);




Now change the line to this:


this.startFlash([0, 255, 0, 128], 8);





save, and that should be it.
Thanks! got that flash working perfect but I can't find how to change the steps, I can only see how to change the effect (damages percentage) not the rate it happens.
Hello Indsh!


I found the line to change the steps!


Open the rpg_objects, then ctrl + F, and write stepsForTurn and search.


The number 20 below is the number of steps to do damage to the player. Just change it to the number you like.


Sorry for english mistakes haha.

Original thread: https://forums.rpgmakerweb.com/threads/poison.71910/