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
Unlock door when you read Note
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#1
Unlock door when you read Note

Hello I'm trying to make it where you have to read a note so you can unlock a door (just so you get the full atmosphere) And I'm not quite sure how to do it, I tried before but it just didn't work.

Door Name= Trial1
Note Name= Note01
Note Text = Note01


P.S How Do you make it so you boost your sanity. I Can make it go lower but not higher (It just doesn't work) right now I have a cheap way of doing it (Complete objective, Potion spawns in Main Room Lol)

Please Help Thank you
-GreyFox

Current Project
Forgotten
08-02-2011, 09:10 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Unlock door when you read Note

void OnStart()
{
     SetEntityPlayerInteractCallback("Note01", "Func01", true);
}
void Func01(string &in asEntity)
{
     //AddUseItemCallback for unlocking it with item or whatever
     //If above comment is not what you're looking for, put SetSwingDoorLocked("Trail1, false, true); and some sound effect...
}

GiveSanityBoost(); = Normal boost.
GiveSanityBoostSmall(); = Small boost.

I hope this helps. Smile

(This post was last modified: 08-02-2011, 09:21 PM by Kyle.)
08-02-2011, 09:20 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: Unlock door when you read Note

Thank you but wouldnt SetSwindDoorLocked Lock the door? Lol, Also For the GiveSanityBoost I Don't Put anything in the Brackets?

And I Know I already asked a couple questions, but How do I do the quest thing? I Looked in the script functions page and was confused at this one line

asNameAndTextEntry - entry in the .lang file. Must start with “Questfckg_QUOT_, end with _fckg_QUOTText”, and be in category “Journal”!

What does that mean? I understand that I have to use my Extra_English.lang file and its category is "Journal" but what does the rest mean!?

Thank you
-GreyFox

Current Project
Forgotten
08-02-2011, 09:30 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Unlock door when you read Note

SetSwingDoorLocked("DoorName", false, true);

The "false" makes it become unlocked. Tongue

You don't put anything between the brackets.

http://www.youtube.com/watch?v=WfgFEG4TS...er&list=UL

08-02-2011, 09:51 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#5
RE: Unlock door when you read Note

Thank you Kyle You're a big Help (:

-GreyFox

Current Project
Forgotten
08-02-2011, 10:11 PM
Find




Users browsing this thread: 1 Guest(s)