Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Effect after solve a puzzle
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Effect after solve a puzzle

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: (Select All)
GiveSanityBoostSmall();
GiveSanityBoost();
AddPlayerSanity(float afSanity); 
Nothing will show this effect, so I am asking you.
10-05-2012, 08:15 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#2
RE: Effect after solve a puzzle

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

Post your script file. If you have one.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 10-05-2012, 08:18 PM by Robby.)
10-05-2012, 08:16 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: Effect after solve a puzzle

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.
10-05-2012, 08:17 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#4
RE: Effect after solve a puzzle

(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.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
10-05-2012, 08:19 PM
Website Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#5
RE: Effect after solve a puzzle

(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.
10-05-2012, 08:20 PM
Find




Users browsing this thread: 1 Guest(s)