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


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

(02-05-2013, 01:01 PM)BeeKayK Wrote: A thread? You mean on the forum or?

Yeah, a thread. The one like this.
How do I make the [SOLVED] thingy ?


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

You go to the first post, click "Edit", where you can also click reply, quote and report.

Then you can edit the title.


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

(02-05-2013, 01:14 PM)BeeKayK Wrote: You go to the first post, click "Edit", where you can also click reply, quote and report.

Then you can edit the title.
In order to make the addQuest thing work, i have to script it to a script area, right?


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

(02-05-2013, 02:25 PM)JustAnotherPlayer Wrote:
(02-05-2013, 01:14 PM)BeeKayK Wrote: You go to the first post, click "Edit", where you can also click reply, quote and report.

Then you can edit the title.
In order to make the addQuest thing work, i have to script it to a script area, right?

Yes. But you can always put it when you're interacting a door. Or picked up items or stuff. Doesn't have to be script area where the player goes. But people use the script area. It's much easier.


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

It can be put in any callback. Even OnStart.


RE: Memory Capsules' Text - PutraenusAlivius - 02-07-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
When i click on it, the message appear in the bottom. But, the goal is to have the text, with a white background. Kinda like when you clicked on a Memory Capsule(the Capsule with a blue orb-thingy.)


RE: Memory Capsules' Text - NaxEla - 02-07-2013

Use the function:
PHP Code:
void StartEffectEmotionFlash(stringasTextCatstringasTextEntrystringasSound); 

asTextCat - the category in the .lang file
asTextEntry - the text entry in the .lang file
asSound - the sound to play while fading


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

(02-07-2013, 09:01 AM)NaxEla Wrote: Use the function:
PHP Code:
void StartEffectEmotionFlash(stringasTextCatstringasTextEntrystringasSound); 

asTextCat - the category in the .lang file
asTextEntry - the text entry in the .lang file
asSound - the sound to play while fading
Thanks.
is
asTextCat, asTextEntry, asSound
What category, entry, and .snt did they use?


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

Indeed Smile


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

(02-07-2013, 11:44 AM)BeeKayK Wrote: Indeed Smile
Wat? I ask what Category, entry and .snt's they use. And you say indeed. Da hell?
P.S How do i make everytime i enter a map, a music plays, and it also loops?