RPG Maker VX Ace

RPG Maker VX Ace

View Stats:
Orosa Jan 22, 2014 @ 7:41pm
[got a fix] A common event that happens on death
Okay, so i need some help i am trying to create a event that happens when the player dies, (at any point in the game) which will give them a choice to go back to the start of the dungeon or a town, if they go to the start of the dungeon there will be a small fee, but if they go to town, there will also be a fee, but problem is I don't know how to do it, I hope this helps you to help me.
Last edited by Orosa; Jan 24, 2014 @ 3:19pm
< >
Showing 1-3 of 3 comments
FreezeGazer Jan 22, 2014 @ 10:12pm 
1. Common Events
1a)
Tools - Database - Common Events:
001 Death
Contents:
@>Some animation and pause if You want
@>Text: Where do you want to teleport?
@>Show Choises: Enter location (5 Ancient coins), Esmerald Town (10 Ancient coins)
_:_ When [Enter location (5 Ancient coins)]
_ _ @>Change Items: [Ancient coin], -5 (Decrease)
_ _ @>Play SE:
_ _ @>Transfer Player: [003:Any Dungeon] (005,003)
_ _ @
_:_ When [Esmerald Town (10 Ancient coins)]
_ _ @>Change Items: [Ancient coin], -10 (Decrease)
_ _ @>Play SE:
_ _ @>Transfer Player: [002:Esmerald Town] (003,010)
_ _ @
_:_ When Cansel
_ _ @
_:_ Bransh End

1b)
Tools - Database - Common Events:

001 Death
Contents:
@>Some animation and pause if You want
@>Text: Where do you want to teleport?
@>Show Choises: Enter location (5 Ancient coins), Esmerald Town (10 Ancient coins)
_:_ When [Enter location (5 Ancient coins)]
_ _ @>Change Items: [Ancient coin], -5 (Decrease)
_ _ @>Play SE:
_ _ @>Call Cammon Event: [Teleport to Location Position]
_ _ @
_:_ When [Esmerald Town (10 Ancient coins)]
_ _ @>Change Items: [Ancient coin], -10 (Decrease)
_ _ @>Play SE:
_ _ @>Call Cammon Event: [Teleport to Esmerald Town]
_ _ @>
_:_ When Cansel
_ _ @>
_:_ Branch End

002 Teleport to Location Position
Contents:
@>Control Variables: [1001:X] = Player's Map X
@>Control Variables: [1002:Y] = Player's Map Y
@>Get Location Info: [1003], Region ID, Variable [1001][1002]
@>Conditional Branch: Variable [1003: ID] = = 1 (have to put REGION 1 where do You want to TP Your personage)
_ _ @>
_:_ Else
_ _ @>
_:_ Branch End

003 Teleport to Esmerald Town
Contents:
@>Transfer Player: [002:Esmerald Town] (003,010)

2. Location Event
Edit Event - Contents:
@>Call Cammon Event: [Death]

_________________________

Variant 1b) is better, because You can use it in ANY location. It will be looks like this:

Edit Event - Contents:
@>Call Cammon Event: [Teleport to Location Position] (have to put REGION 1 where do You want to TP Your personage)

or
Edit Event - Contents:
@>Call Cammon Event: [Teleport to Esmerald Town]

_____________________________
Sorry, but SPACE not working in the beginning of the line.
Last edited by FreezeGazer; Jan 22, 2014 @ 10:29pm
Orosa Jan 22, 2014 @ 10:28pm 
Okay thanks for that, I got it working now :D Expect some +rep comming your way!
FreezeGazer Jan 22, 2014 @ 10:39pm 
You can make Event somewhere on location:
Conditions Switch [013: Hero Die] is ON
Contents:
@>Call Common Event: [Death]

[013: Hero Die] - is a Switch in mob's Event Content who kill a Hero.

Last edited by FreezeGazer; Jan 22, 2014 @ 10:43pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jan 22, 2014 @ 7:41pm
Posts: 3