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
Door messages and noises and memos in scripting?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#10
RE: Door messages and noises and memos in scripting?

(10-18-2011, 12:17 AM)MissMarilynn Wrote: Is this correct? Nothing appeared when I went to the door but I didn't get an error. I'm positive my language file is correct.

Is "officekey" a door?

(10-18-2011, 12:17 AM)MissMarilynn Wrote: I just want the message to appear when I don't have the key. I want a message to appear when I do have the key that says "Double click the key in your inventory and use it on the door."

Then you're going to want something like this:

PHP Code: (Select All)
void IsItLocked(string &in entity)
{
     if (
GetSwingDoorLocked(entity)
     && 
entity == "door_name")
     {
          if (!
HasItem("key"))
               
SetMessage("cat_name""entry_name"0);
          else
               
SetMessage("cat_name""entry_name2"0);
     }


(10-18-2011, 12:17 AM)MissMarilynn Wrote: EDIT: I placed the "Quest text" part under the journals category in the .lang file. Is that messing something up?

If it looks like my example, then it shouldn't.

Tutorials: From Noob to Pro
10-18-2011, 12:37 AM
Website Find


Messages In This Thread
RE: Door messages and noises and memos in scripting? - by Your Computer - 10-18-2011, 12:37 AM



Users browsing this thread: 1 Guest(s)