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
Message on locked door
MaTPlays Offline
Junior Member

Posts: 21
Threads: 5
Joined: Aug 2013
Reputation: 0
#1
Message on locked door

Hellos!
I've got a problem with the script which adding a message to a locked door.

I changed name of a door to: door3

I wrote in the PlayerInteractCallBack: DoorLockedPlayer

Then i typed in my .lang file:
<CATEGORY Name=“Messages”>
<Entry Name =“msgname”>It is you, the grandson? Please, go get a sack of potatoes for dinner. It should be outside, first on the right, next to apples. The key to the main door in the dining room.</Entry>
</CATEGORY>


And in my .hps:

void DoorLockedPlayer(string &in entity)


{
if(GetSwingDoorLocked("door3"))
{

SetMessage("Messages", "msgname", 0);

}
}


I've got a script for opening door with a key, maybe that's a problem, but idk how can I edit it.

help please!
08-08-2013, 07:39 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Message on locked door

Special quotation marks are not valid XML; use normal quotation marks.

Tutorials: From Noob to Pro
08-08-2013, 07:53 PM
Website Find
MaTPlays Offline
Junior Member

Posts: 21
Threads: 5
Joined: Aug 2013
Reputation: 0
#3
RE: Message on locked door

I deleted comas and question marks. Still doesn't work. But why? Previously in my lang file i add also this:
<Entry Name="Note_theletter_Text">Oh...[br]So, you're finally here.[br]Doesn't matter who you are, the only thing that matters now is Why Are You Here?[br]Lets go to the door in front of you and open them with the key from the cabinet.[br]Come on, do not waste the time.</Entry>

And this working.
08-08-2013, 08:07 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Message on locked door

Special quotation marks: “”
Normal quotation marks: ""

Question marks and commas are not the issue.

Tutorials: From Noob to Pro
(This post was last modified: 08-08-2013, 08:17 PM by Your Computer.)
08-08-2013, 08:17 PM
Website Find
MaTPlays Offline
Junior Member

Posts: 21
Threads: 5
Joined: Aug 2013
Reputation: 0
#5
RE: Message on locked door

Sorry for incomprehension. Working. Big thanks.
08-08-2013, 08:20 PM
Find




Users browsing this thread: 1 Guest(s)