Sap, Disease state snippet

Janusz

Veteran
Veteran
Joined
Jul 4, 2015
Messages
26
Reaction score
4
Primarily Uses
I need a little help. I'm looking for a script/snippet that allows me create states like Sap or Disease.
It is poison state which also reducing(or set) MHP to actual HP, but not less than 1.

I tried pinning something like:

this.mhp = this.hp; // also tried this._hpif (this.mhp < 1) {this.mhp++;} // or {this.mhp = 1;}in many parts rpg_object.js file for detect which part i should edit/modify but without succes.

That's why I request this snippet.

It would be nice if it will working with notetags like <sap> and <mpsap>(MP instead HP).

Thanks in Advance.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top