Frictional Games Forum (read-only)
Map change after a monster kills you - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Map change after a monster kills you (/thread-9525.html)



Map change after a monster kills you - lordmestari - 08-01-2011

Hello!

I've been working on an Amnesia mod to scare my friend shitless for a while now Big Grin

The mod is called "The Fun Palace" for now, even though I wont be using my unique story for this mod. (as I said, just a few maps for my friends Tongue)

So, my question is:

How do you script a map change after a monster kills you?
There's three monsters(brute, grunt and suitor) who break out from 3 doors out of 10 and I want -that- map to end there, and start from a new map after dying. Is it possible? (That part is for the intro, a "nightmare, if you will", and then the character will wake up in a different map


RE: Map change after a monster kills you - Your Computer - 08-01-2011

You create a checkpoint before the player dies with CheckPoint() and then when the callback is called, you call ChangeMap() inside the callback function. Make sure checkpoint doesn't refer to any text entries.


RE: Map change after a monster kills you - Gearsguy - 08-02-2011

Yeah wasnt that already done in Amnesia (so its possible)?

Warning below is sort of a spoiler


In the part where the monster gets to you and you go to the jail cell?