Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Memory Capsules' Text
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#1
Memory Capsules' Text

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?

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 02-05-2013, 11:50 AM by PutraenusAlivius.)
02-05-2013, 11:43 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Memory Capsules' Text

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

Trying is the first step to success.
02-05-2013, 11:50 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Memory Capsules' Text

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

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-05-2013, 11:52 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Memory Capsules' Text

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”!

Trying is the first step to success.
(This post was last modified: 02-05-2013, 11:57 AM by FlawlessHappiness.)
02-05-2013, 11:54 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#5
RE: Memory Capsules' Text

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

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-05-2013, 12:05 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Memory Capsules' Text

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

Trying is the first step to success.
02-05-2013, 12:27 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#7
RE: Memory Capsules' Text

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

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-05-2013, 12:31 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#8
RE: Memory Capsules' Text

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

Trying is the first step to success.
02-05-2013, 12:47 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#9
RE: Memory Capsules' Text

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

[Image: the-cabin-in-the-woods-masked-people.jpg]
02-05-2013, 12:55 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: Memory Capsules' Text

A thread? You mean on the forum or?

Trying is the first step to success.
02-05-2013, 01:01 PM
Find




Users browsing this thread: 2 Guest(s)