Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Linkforce on May 22, 2007, 01:21:47 AM
-
Okay, so I've got this battle where these two brothers fight. How do I make it where if one of the brothers is beaten, then the other will runaway once is has 50% HP or lower. But only if he is alone. How do I do this? I can't seem to figure it out.
-
Make two battle events which trip a switch once either one of the brothers dies. The trigger for this event will be "Brother 1 HP is 0" and "Brother 2 HP is 0". Make it so they each switch ON a different switch. We'll call one "DthBro1" and the other "DthBro2". (Make sure "DthBro1" is set ON by the event triggered by "Brother 1 HP is 0". And obviously "DthBro2" by the event triggered by "Brother 2 HP is 0".) Make two more events, each triggered by having one of the switches and the other brother at Half HP. So it would be like this
---Battle Event Page 3
--Trigger: "DthBro1" ON
--Trigger: Brother 2 50% HP
~and the other page would look something like this~
---Battle Event Page 4
--Trigger: "DthBro2" ON
--Trigger: Brother 1 50% HP
Make both of these events set off another switch, we'll call it "FleeBro". Go back to the Brothers and give them both flee. Make it so they only use flee if "FleeBro" is on. Also, Flee must be set at 100 priority.
Now, I just came up with that and it might not work. There may also be an easier way to do it. But hopefully that will atleast set you on the right track.
EDIT: Just tested it, if you do it right, it should work jsut great.
-
I tried to implement that into what I need but nothing happened. Se,, I only need it so that a brother flees' only if the other one flees. Like.....if BrotherA dies, then BrotherB runs. But if BrotherB dies first, BrotherA stays and fights.
-
Well ok, then try this.
---Battle Event Page 1
--Trigger: BrotherA HP is 0
-Event: Switch on "DthBroA"
---Battle Event Page 2
--Trigger: "DthBroA" ON
--Trigger: Brother B 50% HP
-Event: Switch on "Brother B Escape"
*Just make it so Brother B has the Escape as 100% priority if the switch "Brother B Escape" is on.
-
Hm.....he did everything but Run.......very odd....
-
That's weird, I don't see how it wouldn't work. Is Escape at 100 priority and set so the trigger is "Brother B Escape" ON?
-
Hmm.....I'm sure I can figure it out. Thanks for your help though dren! I appreciate it. :D
-
No problem, anything I can do. :)
-
Well, it ended up working. Lol, the problem was that I didn't let the other brother take his turn to escape. XD *Slaps forehead*