Frictional Games Forum (read-only)
[SCRIPT] Memory Capsules' Text - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Memory Capsules' Text (/thread-20192.html)

Pages: 1 2 3


Memory Capsules' Text - PutraenusAlivius - 02-05-2013

Hey, i just wanna know how to make a memory capsules text? Like when you click on an object, then a word shows up? I need it for my CS.
PS : How do you add a memento?


RE: Memory Capsules' Text - FlawlessHappiness - 02-05-2013

There is an interaction-tab inside any entity. If you write something in it, a callback with the same name as what you wrote will be called when you click the object.
If there is no interaction-tab then cover it in a script area.
Let's say you wrote "InteractNote"

void InteractNote(string &in asEntity)
{
SetMessage("MessageCategory", "MessageEntry", 0);
}

The messages are stored in your .lang file


RE: Memory Capsules' Text - PutraenusAlivius - 02-05-2013

(02-05-2013, 11:50 AM)BeeKayK Wrote: There is an interaction-tab inside any entity. If you write something in it, a callback with the same name as what you wrote will be called when you click the object.
If there is no interaction-tab then cover it in a script area.
Let's say you wrote "InteractNote"

void InteractNote(string &in asEntity)
{
SetMessage("MessageCategory", "MessageEntry", 0);
}

The messages are stored in your .lang file
Thanks!!!!!!
P.S How do you add a memento?


RE: Memory Capsules' Text - FlawlessHappiness - 02-05-2013

Quests

void AddQuest(string& asName, string& asNameAndTextEntry);
Adds a quest to the player's journal.
asName - the internal name to be used
asNameAndTextEntry - entry in the .lang file. Must start with “Quest_<texthere>_Text”, and be in category “Journal”!

void CompleteQuest(string& asName, string& asNameAndTextEntry);
Completes a quest.
asName - the internal name of the quest
asNameAndTextEntry - entry in the .lang file. Must start with ” Quest_<texthere>_Text ”, and be in category “Journal”!


RE: Memory Capsules' Text - PutraenusAlivius - 02-05-2013

(02-05-2013, 11:54 AM)BeeKayK Wrote: Quests

void AddQuest(string& asName, string& asNameAndTextEntry);
Adds a quest to the player's journal.
asName - the internal name to be used
asNameAndTextEntry - entry in the .lang file. Must start with “Quest_<texthere>_Text”, and be in category “Journal”!

void CompleteQuest(string& asName, string& asNameAndTextEntry);
Completes a quest.
asName - the internal name of the quest
asNameAndTextEntry - entry in the .lang file. Must start with ” Quest_<texthere>_Text ”, and be in category “Journal”!
Do i have to write something in the void OnStart() part?


RE: Memory Capsules' Text - FlawlessHappiness - 02-05-2013

Nothing Smile It is a simple line that you put into another callback


RE: Memory Capsules' Text - PutraenusAlivius - 02-05-2013

(02-05-2013, 12:27 PM)BeeKayK Wrote: Nothing Smile It is a simple line that you put into another callback
OK. I guess this thread is "declared" solved! Get it? 'cause the script has declarations and the word "declared" got a "" sign.


RE: Memory Capsules' Text - FlawlessHappiness - 02-05-2013

Yes... yes i get it... Smile


RE: Memory Capsules' Text - No Author - 02-05-2013

Hey, this is maybe a little off topic.
But, how do I edit a thread? Edit the options of the thread ?


RE: Memory Capsules' Text - FlawlessHappiness - 02-05-2013

A thread? You mean on the forum or?