Frictional Games Forum (read-only)
Insanity Problem - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Insanity Problem (/thread-5351.html)



Insanity Problem - Everlone - 11-07-2010

I have a problem with the insanity in the editor. I make a Area but if i go with the player in this area there will not happening. i have no idea why it doesnt work.

Thx for help.


RE: Insanity Problem - Nemesis751 - 11-07-2010

(11-07-2010, 05:11 PM)Everlone Wrote: I have a problem with the insanity in the editor. I make a Area but if i go with the player in this area there will not happening. i have no idea why it doesnt work.

Thx for help.

This area will only trigger if your charater has a certain amount of sanity left i think its 50 anyway happy map making Smile


RE: Insanity Problem - Everlone - 11-07-2010

and how i can change his sanity??? ^^ ill make dark maps and there are low lights and some shadows.


RE: Insanity Problem - Nemesis751 - 11-07-2010

(11-07-2010, 05:22 PM)Everlone Wrote: and how i can change his sanity??? ^^ ill make dark maps and there are low lights and some shadows.

thats one way too do it but it slowly drains, if u want and you know how scripting works i can give you a trigger to make your charater loose a certain amount of sanity.


RE: Insanity Problem - Everlone - 11-07-2010

yes i know a little bit about scripting Smile nice if you can give me a script Smile big thx


RE: Insanity Problem - Nemesis751 - 11-07-2010

void OnStart()
{
SetEntityPlayerLookAtCallback("slime_egg_3", "PlayerLookAt", true);
)

void PlayerLookAt(string &in entity, int alState)
{
GiveSanityDamage(40.0f, true);
}


Where it says slime egg 3 you can put whatever entity you want, same with "PlayerLookAt".

So what happens here is the player looks at the slime egg and will loose 40 sanity out of 100 then you insanity areas will kick in Smile hope i helped.

one more thing you can change the 40 to whatever number you like.


RE: Insanity Problem - Everlone - 11-07-2010

thx it help me Smile


RE: Insanity Problem - Nemesis751 - 11-07-2010

(11-07-2010, 06:04 PM)Everlone Wrote: thx it help me Smile

no problem my friend ^^