Frictional Games Forum (read-only)
You have to hepl me... XD - 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: You have to hepl me... XD (/thread-18010.html)



You have to hepl me... XD - Ank2503 - 08-28-2012

How to change message "You have to carry on" in my CS?


RE: You have to hepl me... XD - Robby - 08-28-2012

(08-28-2012, 08:13 PM)Ank2503 Wrote: How to change message "You have to carry on" in my CS?
The only way I saw that was to use a checkpoint. The script for the checkpoint is this one:
Code:
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
Sets a checkpoint at which the player will respawn in case he dies.
Callback syntax: void MyFunc(string &in asName, int alCount)

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

Hope this helps.


RE: You have to hepl me... XD - Ank2503 - 08-28-2012

i'm a newbie,to make Checkpoint i need create script area?


RE: You have to hepl me... XD - Robby - 08-28-2012

(08-28-2012, 08:19 PM)Ank2503 Wrote: i'm a newbie,to make Checkpoint i need create script area?
You can trigger that in many ways. You can use a script area for example (when you come in contact with it, it triggers the "checkpoint" script.

You can use a simple timer as well. With checkpoints you can repeat a certain event (like a chase) until you get past it. And THAT is where you can add a "death hint".


RE: You have to hepl me... XD - Kazakarumariou - 08-28-2012

help*

lol
here
void OnStart()
{
AddEntityCollideCallback("Player", "SCRIPTAREA", "DeathHint", false, 1);

}


void DeathHint(string &in asParent, string &in asChild, int alState)
{
SetDeathHint("Hints", "Death1");
}

LANGFILE

<CATEGORY Name="Hints">
<Entry Name="Death1">Get out of the water dumb shit.</Entry>
</CATEGORY


RE: You have to hepl me... XD - Robby - 08-28-2012

(08-28-2012, 08:32 PM)Harthex Wrote: help*

lol
here
void OnStart()
{
AddEntityCollideCallback("Player", "SCRIPTAREA", "DeathHint", false, 1);

}


void DeathHint(string &in asParent, string &in asChild, int alState)
{
SetDeathHint("Hints", "Death1");
}

LANGFILE


Get out of the water dumb shit.


I never saw that function before. But that pretty much wraps it all up. Forget the checkpoint I talked about, I can't really help when it comes to that. I always fail at helping (well, not always).


RE: You have to hepl me... XD - Kazakarumariou - 08-28-2012

CheckPoint ("INTERNALNAME", "NEWSTARTPOS", "FUNCTOCALLONDEATH", "DEATHHINTCAT", "DEATHHINTLAN");