Chaos Project

RPG Maker => Event Systems => Topic started by: Rymdpotatis on August 03, 2008, 10:27:39 am

Title: Event problem.
Post by: Rymdpotatis on August 03, 2008, 10:27:39 am
I've made an even so that when the player dies he gets teleported to a bed at a guild, and loses one level. The problem is that when the player wakes up in the bed a person will stand next to him and say a small dialog, this does not happen.

This is my event for the custom death:
@>Conditional Branch[Player] is [Knockout] inflicted
@>Change state:Entire Party, -[Knockout]
@>Change screen tone: (-255,-255,-255, @1
@>Wait: 1 frame(s)
@>Change level:entire party -1
@>Recover all: Entire party
@>Transfer player[location]
@>Control switches: [0005:Defeated] = ON
@>
@> Branch End


And this is my event for the bed:
First page is blank with no graphics since I don't want the person to appear when I haven't died.

Second page.
Conditions: Switch 0005:Defeated is ON.

And the event commands:
@>Conditional branch:Switch [0005:Defeated] ==ON
Set Move Route:This event
:                   :$>Graphic: "025-Cleric01',0,6,0
@>Text: (yadayada)
@>Text: (yadayada)
@>Erase event.
Branch End.
Title: Re: Event problem.
Post by: Blizzard on August 03, 2008, 10:42:44 am
Don't use "@>Conditional branch:Switch [0005:Defeated] ==ON", add "@>Control switches: [0005:Defeated] = OFF" at the end and make the event "Auto-Start".
Title: Re: Event problem.
Post by: Rymdpotatis on August 03, 2008, 11:23:03 am
I think I'm to dumb to figure this out.
I removed the Conditional branch from page two of the "guy by bed" event. Inserted [0005:Defeated] = OFF" last and put it on auto-start. I went to test it and when the character woke up in bed still nothing happened. x_x
Title: Re: Event problem.
Post by: Blizzard on August 03, 2008, 12:18:18 pm
I didn't see that one...

@>Transfer player[location]
@>Control switches: [0005:Defeated] = ON

Change them to:

@>Control switches: [0005:Defeated] = ON
@>Transfer player[location]
Title: Re: Event problem.
Post by: Rymdpotatis on August 03, 2008, 12:28:41 pm
That made it work, many thanks!^^



Humm, seems to be a problem with my custom death event aswell. Sometimes it works, and sometimes I get a gameover screen.
Title: Re: Event problem.
Post by: Blizzard on August 03, 2008, 12:53:21 pm
The switch that you use for the parallel process, is it on all the time? Also, I'd recommend using a script instead because it is more convenient. There is one in the RMXP Scripts Database.
Title: Re: Event problem.
Post by: Rymdpotatis on August 03, 2008, 01:13:55 pm
Alright, I'll take a look at the death script.