Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - [Request] How to make a lifesteal weapon?

The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: HeZ on April 15, 2009, 04:04:35 PM

Title: [Request] How to make a lifesteal weapon?
Post by: HeZ on April 15, 2009, 04:04:35 PM
I would like to know if it's possible to make a weapon that adds a % life steal/drain.

So that when the character with this weapon attacks, they will gain a % of the damage as health.

Thanks in advance for any suggestions.

I had a look around the forum but couldn't find anything

P.S. Sorry if this is in the wrong place, this seemed like the most logical place to put it.
Title: Re: [Request] How to make a lifesteal weapon?
Post by: stievstigma on May 27, 2009, 11:43:47 PM
Hi, just thought I'd take a quick stab at your question. If you wanted to event script it, you could have your weapon inflict a state called 'drain' (or whatever) and have a parallel event called from battle that checks to see if any enemies are inflicted with this state, then - HP from the enemy and + to your hero. You'd have to do a condition branch for each potential enemy.

Hope that helps.