Skill request

Hi
I need an enemy to work like minecraft creepers:They only know one skill that kills themselves,but deals damage too
How can I do that?
You mean like one of those bomb creatures that explodes (kills itself) while massively damaging others?

If so, I think you can create that easily. Just do a damage skill normally and then add HP -100% in effect.
Okay, I'd do it a little differently. To make a self destruct skill, make a normal skill, make sure it costs no TP or MP, yes. But then give it this damage formula:
Code:
a.setHp(0); a.performCollapse(); (a.atk * 4) * (b.def * 2)
Feel free to change the number on a.atk * 4 to something else. The higher the number the more damage.
As a breakdown of this formula, if you want it:
  • First the enemy's health is set to 0 with a.setHp(0).
  • The collapse effect is performed on the enemy with a.performCollapse(). If this is not done, the enemy stays on screen.
  • The last part, with .atk and .def is the standard damage formula for a normal skill.
You mean like one of those bomb creatures that explodes (kills itself) while massively damaging others?

If so, I think you can create that easily. Just do a damage skill normally and then add HP -100% in effect.
If you mean like this:
Screenshot (28).png

it doesn't work,all that happens is that the player gets one-shotted
Yeah.

If the mob doesn't get knocked out, just add state KO even.
The way that effect works is that it causes the player to lose 100% HP.
Or, the player receives the state KO
Are you sure?

I used that method to let monsters heal themselves.
Okay, I'd do it a little differently. To make a self destruct skill, make a normal skill, make sure it costs no TP or MP, yes. But then give it this damage formula:
Code:
a.setHp(0); a.performCollapse(); (a.atk * 4) * (b.def * 2)
Feel free to change the number on a.atk * 4 to something else. The higher the number the more damage.
As a breakdown of this formula, if you want it:
  • First the enemy's health is set to 0 with a.setHp(0).
  • The collapse effect is performed on the enemy with a.performCollapse(). If this is not done, the enemy stays on screen.
  • The last part, with .atk and .def is the standard damage formula for a normal skill.
Thank you,it worked!
Thank you,it worked!
Great to hear <3
Are you sure?

I used that method to let monsters heal themselves.
Well...I'm pretty sure
Just tested myself. You are right.

Edit: Since I was using effects with healing spells mostly, I guess I got the idea of effects affecting the host rather than the impacted.
@Heather306 If this has answered your query to your satisfaction, please Report your post and ask for the thread to be closed.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-request.113773/