Frictional Games Forum (read-only)
Effect after solve a puzzle - 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: Effect after solve a puzzle (/thread-18640.html)



Effect after solve a puzzle - ooadrianoo - 10-05-2012

Hello,
I am searching about the effect, often used if someone solved a puzzle.
The effect makes that the screen fades to blue and a sound plays. That is the same effect after using a sanity potion.
I tried:
PHP Code:
GiveSanityBoostSmall();
GiveSanityBoost();
AddPlayerSanity(float afSanity); 
Nothing will show this effect, so I am asking you.


RE: Effect after solve a puzzle - Robby - 10-05-2012

The AddPlayerSanity function is not supposed to trigger the screen fade effect. The other 2 should.

Post your script file. If you have one.


RE: Effect after solve a puzzle - Statyk - 10-05-2012

The function is GiveSanityBoost(); but the player needs less than 100% sanity for it to occur. So I assume you have 100% sanity in game.


RE: Effect after solve a puzzle - Robby - 10-05-2012

(10-05-2012, 08:17 PM)Statyk Wrote: The function is GiveSanityBoost(); but the player needs less than 100% sanity for it to occur. So I assume you have 100% sanity in game.
That sets it to 100%, regardless how low it actually is. But that should do the job nonetheless.

If you want your sanity to be restored with small increments, GiveSanityBoostSmall(); is the part.

Just lending some more advice.


RE: Effect after solve a puzzle - ooadrianoo - 10-05-2012

(10-05-2012, 08:17 PM)Statyk Wrote: The function is GiveSanityBoost(); but the player needs less than 100% sanity for it to occur. So I assume you have 100% sanity in game.
Thank you, that was it.