Event problem.

Started by Rymdpotatis, August 03, 2008, 10:27:39 am

Previous topic - Next topic

Rymdpotatis

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.

Blizzard

Don't use "@>Conditional branch:Switch [0005:Defeated] ==ON", add "@>Control switches: [0005:Defeated] = OFF" at the end and make the event "Auto-Start".
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Rymdpotatis

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

Blizzard

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]
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Rymdpotatis

August 03, 2008, 12:28:41 pm #4 Last Edit: August 03, 2008, 12:45:31 pm by Rymdpotatis
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.

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Rymdpotatis

Alright, I'll take a look at the death script.