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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Adding mementos to locked doors?
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#6
RE: Adding mementos to locked doors?

(11-04-2012, 11:18 PM)ZeroPie Wrote:
(11-04-2012, 07:54 PM)Tigerwaw Wrote:
(11-04-2012, 07:40 PM)ZodiaC Wrote: did you create a lang file?
Yes, of course

(11-04-2012, 07:44 PM)The chaser Wrote: So, the whole script would look like this:
void DoorLockedPlayer(string &in entity)


{
if(GetSwingDoorLocked("EXAMPLE_DOOR") == true)
{

AddQuest(string& asName, string& asNameAndTextEntry);

}
What am I supposed to write into the .lang file and where should I write the name for the memento that is in the .lang file?
TEXT HERE
Must be in .lang category Journal
And the script would like this: AddQuest("myquest", "MyQuest");
To complete a Momento(aka. quest) you just script this: CompleteQuest("myquest", "MyQuest");
So basicly the same but instead of 'Add' just type in 'Complete'.
Hope it helps.


Ok thanks. Does it have to have a 'completeQuest'-thing or is it only if you want the player to regain sanity(the blue screen and calm music playing)?

AddQuest("myquest", "MyQuest");

What should I put instead of the 'MyQuest' and 'myquest'?


Is this right?

.hps:

If(GetSwingDoorLocked("BlockedDoor") == true)
{
AddQuest("myquest", "BlockedDoorQuest");
}

.lang:

<CATEGORY Name="Journal">
<Entry Name="Quest_BlockedDoorQuest_Text">Text that you're not allowed to see</Entry>
</LANGUAGE>
(This post was last modified: 11-05-2012, 12:38 PM by Tiger.)
11-04-2012, 11:19 PM
Find


Messages In This Thread
Adding mementos to locked doors? - by Tiger - 11-04-2012, 07:36 PM
RE: Adding mementos to locked doors? - by ZodiaC - 11-04-2012, 07:40 PM
RE: Adding mementos to locked doors? - by Tiger - 11-04-2012, 07:54 PM
RE: Adding mementos to locked doors? - by ZeroPie - 11-04-2012, 11:18 PM
RE: Adding mementos to locked doors? - by Tiger - 11-04-2012, 11:19 PM
RE: Adding mementos to locked doors? - by ZeroPie - 11-05-2012, 02:01 AM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 12:36 PM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 01:17 PM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 04:03 PM
RE: Adding mementos to locked doors? - by Tiger - 11-05-2012, 05:34 PM
RE: Adding mementos to locked doors? - by Adny - 11-06-2012, 11:30 AM
RE: Adding mementos to locked doors? - by craven7 - 11-06-2012, 02:16 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 04:04 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 04:28 PM
RE: Adding mementos to locked doors? - by craven7 - 11-06-2012, 05:29 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 08:31 PM
RE: Adding mementos to locked doors? - by Tiger - 11-06-2012, 08:43 PM
RE: Adding mementos to locked doors? - by craven7 - 11-06-2012, 08:38 PM



Users browsing this thread: 2 Guest(s)