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.
Don't use "@>Conditional branch:Switch [0005:Defeated] ==ON", add "@>Control switches: [0005:Defeated] = OFF" at the end and make the event "Auto-Start".
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
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]
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.
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.
Alright, I'll take a look at the death script.