Frictional Games Forum (read-only)

Full Version: Memory Capsules' Text
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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?
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
(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?
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”!
(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?
Nothing Smile It is a simple line that you put into another callback
(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.
Yes... yes i get it... Smile
Hey, this is maybe a little off topic.
But, how do I edit a thread? Edit the options of the thread ?
A thread? You mean on the forum or?
Pages: 1 2 3