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
Memento when trying to open a door
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#1
Memento when trying to open a door

What is the hps and extra_english.lang scripting required to make a memento when you try to open a locked door.

Custom Stories

-BrastaSauce

10-17-2011, 10:45 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Memento when trying to open a door

try this... but add your info. And make sure the door is locked in the level editor!

NOTE! Anything capitalized, add your own details. and when it says "J_QUEST NAME", keep the J in there. It helps separate it from the .hps, at least what i do =P

//________________________
void OnStart()
{
SetEntityPlayerInteractCallback("LOCKED_LEVELDOORNAME", "Adddoorquest", true);
}

void Adddoorquest(string &in asEntity)
{
AddQuest("QUEST_NAME", "J_QUEST_NAME");
//asNameAndTextEntry - entry in the .lang file. Must start with "Quest_J_QUESTNAME_Name" / "Quest_J_QUESTNAME_Text", and be in CATEGORY “Journal”!
}

//____________________________________


In extra_english.lang:

<CATEGORY Name="Journal">
<Entry Name="Quest_J_QUESTNAME_Name">title of your quest! yadda yadaa!</Entry>
<Entry Name="Quest_J_QUESTNAME_Text">This is what's put in your momento, blah blah!</Entry>
</CATEGORY>

//____________________________________


Let me know if it works!
(This post was last modified: 10-18-2011, 12:23 AM by Statyk.)
10-17-2011, 11:56 PM
Find




Users browsing this thread: 2 Guest(s)