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?
ZeroPie Offline
Junior Member

Posts: 15
Threads: 2
Joined: Apr 2012
Reputation: 0
#7
RE: Adding mementos to locked doors?

(11-04-2012, 11:19 PM)Tigerwaw Wrote:
(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:



Text that you're not allowed to see >[Image: smile.gif]

The CompleteQuest script is just to remove the momento from the player's journal, but it can be combined with sanity scripts too.
But the CompleteQuest script is not required, but if it's not used the momento will be there the whole Custom Story.
And the one with the lowercase letters 'myquest' can be anything but I recommend using the same as the one with uppercase letters. (And just so you know it doesn't need to be uppercase/lowercase, but I do like so.)
So you can change the AddQuest to: AddQuest("blockeddoorquest", "BlockedDoorQuest");
Try that out and tell us if it works.
(This post was last modified: 11-05-2012, 02:07 AM by ZeroPie.)
11-05-2012, 02:01 AM
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: 1 Guest(s)