(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>