Hello everybody!
In my game, I have set up a kind of a minigame using Khas battle script.
How? Well, the player buys a game on the local shop, and uses it on
the videogame that it's on his house.
When the player enters, he faces some many monsters, and so switches!
He goes from one level to the other, and so on.
The problem is, if the player dies, or gets out of this mini game, when he
come sback, all the switches, and itens in chests, are used, opened,
the monsters are already dead, etc.
Is there a way for me to reset this?
I figured I could do by erasing the events, but it's not working.
Sorry if my questions is unclear, and I appreciate any kind of help.
I would suggest using a death events script, it calls a common event when you die, which you can use to reset all the switches.
You can make a switch when the player Exits that game,Toogle a Switch.That switch will reset everything.
Khas already provides a death common event, the problem is, it's a minigame,
I made a script to surpass this death common event so that the player
gets transferred back to his home, no exp (As it's a game, you don't
carry over the xp), no armor or weapons he might have got inside there.
The deathe event will be used when the battles happen for real.
How can I reset all the switches? There was a switch reset button on
older version os rpgm no?
I thought that doing this would sufice =)
When he transfer back (Dead or winning the minigame) He loses
his exp, and itens. Oh, and I will have to add the stats things. Forgot that
as I added Lune Skill tree, some people may add those when playing the
minigame.
A common event would be better for this?
I didn't quite get it.:
Player transfer to minigame map > Switch xxx ON at home on an autorun event >
Player do what he gotta do > Transfer back and ?
This autorun event at his home will erase when he transfer back? I set it to turn off
all switches inside the game?
What is there to not understand? When you enter minigame, turn on a switch.
Wait a sec, the minigame is nothing but battles, right, there's no actual map is there?
Proving there's no map, it will work as I stated.
Make a common event require that switch on, then in the common event, turn off all the switches that, that minigame can possibly turn on.
I made them manually, but I didnt give them switches =)
Maybe I can put a label? When the player transfer back to
his home map, activates a switch with a label that points back to the
event's first page?
Huuuuum. Wouldn't it look strange if the chest simply disappear? Hehehe
I did exactly this, the crazy graphical changes so that the chest appears to open.
There is a conditional for the player like.:
Open chest and take it's itens? Yes or No, on Yes the chest does it's graphical
gimnick and returns to the player the text "Chest empty" It's all in portuguese, so well
I'm translating the best way I can lol. Whenever the player clicks it again, it will
return chest empty.
Don't worry, I will try all your ideas.
It worked out man! I put switches everywhere, on chests, monsters, buttons,
etc.
When the players gets out of the map they are set to off, when they get back it's
all new and shiny again!
Thanks a bunch, problem solved.