(08-29-2012, 05:20 PM)SmokeMelvin Wrote: I want a brute to slash the player, then a death text will show, then you wake up in another map.
I searched over the internet for a long time. Could be that I wasn't searching for the right stuff, but I want to know how I do this.
I've been looking into the original game script and map, but they weren't eye opening for me.
thanks in advance, SmokeMelvin
You need to use a checkpoint here.
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
Call this with the same event that triggers the monster.
Additional info:
asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file
At the Callback section, add a "ChangeMap" script. Code is below.
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
If that helped, help me back with a +1. It's a fair trade.
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.