Frictional Games Forum (read-only)
Scripting help - 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: Scripting help (/thread-15205.html)



Scripting help - P44RTHURN4X - 05-01-2012

Hey all,

i wanna ask you, cause i cannot find it out by trying and testing..., how to do that.
There are 2 monsters, left and right, and they don't attack you (they are "friendly") and the "monster-hunt-you-music is also not running. I need it very quickly now! Please help!



GReeZe' P44



RE: Scripting help - TeamSD - 05-01-2012

Well, you could try this.

Put this into your map: entities/ttp/servant_grunt_nomusic

Then, click that grunt and select "Entity" and check the DisableTriggers box. Now your monster does not react to the player in anyway and the music is also not playing. You can set pathnodes to your monster normally.



RE: Scripting help - P44RTHURN4X - 05-03-2012

I found it out much easier!:

SetEnemyDisableTriggers("enemy2_1", true);
Put this into your .hps file like this:
void OnStart()
{
SetEntityActive("enemy2_1", true);
SetEnemyDisableTriggers("enemy2_1", true);
AddEnemyPatrolNode("enemy2_1", "PathNodeArea_1", 0, "idle.anm");
}

But thanks for your help bud.



RE: Scripting help - FragdaddyXXL - 05-03-2012

Turn sanity drain off too, right?



RE: Scripting help - Elven - 05-04-2012

Turning the Sanity Drain off only reduces darkness sanity reduction. Meaning that if you are in pitch dark room, your sanity will not decrease. But whenever you are watching monster, your sanity will reduce and effects will appear. Except if you make full conversion OR set sanity back to 100 in every x seconds via scripting.

Its just little bit info.

Also, you can use normal grunts as well, disable triggers as stated above and overwrite the music with other (maybe empty?) music with extreme priority.