Frictional Games Forum (read-only)
[SCRIPT] :( - 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: [SCRIPT] :( (/thread-25205.html)

Pages: 1 2 3


RE: :( - Straxedix - 05-03-2014

IT IS WORKINGGGG WOOOOOOHOOOO Smile
Reputation+ for you Tongue


RE: :( - DnALANGE - 05-03-2014

There you go Stradix.
Did you see what was wrong my friend?
You added 1 Catagory too much.
-
Hint : Try to see what you did wrong and understand it.
( see others scripts and english files just to cheat a little Wink )

Btw add SOLVED please. : Script Help Sad = SOLVED
Thanks and we are here for any other issues.


RE: :( - Straxedix - 05-03-2014

Hh thanks man! Smile i will
But i have 2 problem

First
Spoiler below!
Call me Straxedix Tongue (kidding)

Second
Spoiler below!
When i wanna make SetMessage without wake up just walk in area how i will do that ?



RE: :( - DnALANGE - 05-03-2014

If i understand you correctly ;
Make a scriptarea and call it whatever you want let's say MessageLivingRoom ( level editor )
Then make a script OnStart()
and call it :
PHP Code:
AddEntityCollideCallback("Player""MessageLivingRoom""NAMEOFEVENT"true1); 
Then
PHP Code:
void NAMEOFEVENT(string &in asParentstring &in asChildint alState)
{
SetMessage("Ch01Level01_Message1""YOURNAMEOFMESSAGE"5);


I have to go.
Might be back later on.
The members here will help you any further if you have some quesitons.
Good luck!


RE: :( - Straxedix - 05-03-2014

I try like this

Spoiler below!
AddEntityCollideCallback("Player", "TextHere", "Text1", true, 1);

void Text1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Ch02Level02", "WakeUpMessage1", 5);
}

and area is called TextHere

.lang

Spoiler below!
<CATEGORY Name="Ch02Level02">
<Entry Name="WakeUpMessage1">This house...I know it...That monster maybe she put me here!</Entry>
</CATEGORY>

Anyone Sad


RE: :( - FlawlessHappiness - 05-03-2014

You put AddEntityCollideCallback("Player", "TextHere", "Text1", true, 1); in void OnStart()