The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: magic2345 on May 04, 2007, 12:19:54 PM

Title: Change the battlers when attacked.
Post by: magic2345 on May 04, 2007, 12:19:54 PM
Is there a script that can let me change the battler when I get attacked and when I die? I'm using faces for battlers(I know it sounds crappy) and I want the faces the change when the char is attacked and died. Is this possible?

Thanks,
Title: Re: Change the battlers when attacked.
Post by: Winged on May 04, 2007, 12:55:26 PM
If you had some event's with EVERY SINGLE battle it MIGHT work (I have a rough image of the event so far, I dunno if it's gonna work out though)

~Winged
Title: Re: Change the battlers when attacked.
Post by: :) on May 04, 2007, 01:27:32 PM
events.

Control variable 1 = Hero's HP
Condtional branch = Hero's HP = 0
Change actor graphic.
Title: Re: Change the battlers when attacked.
Post by: magic2345 on May 05, 2007, 06:12:03 AM
So, I have to do it by events? And then put the events in the monster groups? That would be a lot of work and I also want the battler to change when he got attacked by the enemy. I think it would be easier with script (I think).
Can someone find this script or even better, make it?

Thanks,
Title: Re: Change the battlers when attacked.
Post by: modern algebra on May 05, 2007, 02:42:25 PM
Or, you could use animations..., but you have to be sort of tricky with them. I believe that was what treign did, but I don't think he still has the demo up.
Title: Re: Change the battlers when attacked.
Post by: L.5 Newbness on May 05, 2007, 08:26:06 PM
When an ally is killed, their sprite vanishes. So surely that event code to change the battle graphic is pointless.

I've been looking for something like this, too. I'm also after a script which allows me to insert an animation for when an ally is taking damage (like a grimace or something), which I think is what you're requesting, also.