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
Error when I try to add a memento
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: Error when I try to add a memento

(08-27-2014, 09:02 PM)PancakeSyndr0m3 Wrote: I'm sorry I'm a total n00b with hpl2 but please can someone help me:
1: How do you script an enemy spawn after you collect a certain item AND
2: How do I add a memento

Hello! You should create a new thread instead of necroing an old one.

In your "void OnStart()" have it like this:

void OnStart()
{
SetEntityPlayerInteractCallback("ITEMNAME", "SpawnMonster_1", true);
}

and outside of the "void OnStart()" have it like this:

void SpawnMonster_1(string &in asEntity)
{
SetEntityActive("MONSTERNAME", true);
}



Mementos are called "Quests" in Amnesia.

AddQuest("MEMENTONAME", "MEMENTONAME");

And in your .lang file you have it like this:

<Entry Name="Quest_MEMENTONAME_Text"> TEXT GOES HERE</Entry>


To complete a quest, use:

CompleteQuest("MEMENTONAME", "MEMENTONAME");

Trying is the first step to success.
(This post was last modified: 08-27-2014, 09:49 PM by FlawlessHappiness.)
08-27-2014, 09:46 PM
Find


Messages In This Thread
RE: Error when I try to add a memento - by FlawlessHappiness - 08-27-2014, 09:46 PM



Users browsing this thread: 1 Guest(s)