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
How do i make the Sanity script?
Clear Offline
Junior Member

Posts: 19
Threads: 4
Joined: May 2012
Reputation: 0
#3
RE: How do i make the Sanity script?

(05-25-2012, 01:54 PM)Putmalk Wrote: I don't understand what "Sanity Script" means?

Do you want to raise/lower the sanity?

Raising, just put one of these lines of code in your script:

GiveSanityBoost();
GiveSanityBoostSmall();

To lower it:

GiveSanityDamage(int number, bool showeffects);

for example:
GiveSanityDamage(10, true);

Alternatively, you can manually set it, but this is less dynamic and more brute force:
SetPlayerSanity(50);

100 - Full Sanity
75 - Slight headache
50 - Head is pounding and hands are shaking
25 - ...
By sanity script i mean that, well, kinda hard to explain.... i'll try i guess, it's like one of those creepy custom stories where you enter a room and the author have placed some Area that when you go by pass it your sanity like goes down, when the screen gets blurry for like half a second and the screen zoomes in and that "Boom" sound effect comes.

And once again soory if i sound noobish Tongue
05-25-2012, 02:00 PM
Find


Messages In This Thread
How do i make the Sanity script? - by Clear - 05-25-2012, 01:50 PM
RE: How do i make the Sanity script? - by Putmalk - 05-25-2012, 01:54 PM
RE: How do i make the Sanity script? - by Clear - 05-25-2012, 02:00 PM
RE: How do i make the Sanity script? - by Clear - 05-25-2012, 02:34 PM
RE: How do i make the Sanity script? - by Putmalk - 05-25-2012, 02:44 PM
RE: How do i make the Sanity script? - by Clear - 05-25-2012, 02:51 PM
RE: How do i make the Sanity script? - by Clear - 05-25-2012, 03:03 PM
RE: How do i make the Sanity script? - by Putmalk - 05-25-2012, 03:04 PM
RE: How do i make the Sanity script? - by Putmalk - 05-25-2012, 03:01 PM
RE: How do i make the Sanity script? - by Clear - 05-25-2012, 03:14 PM
RE: How do i make the Sanity script? - by Putmalk - 05-25-2012, 03:18 PM



Users browsing this thread: 3 Guest(s)