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-07-2013

(02-07-2013, 12:11 PM)JustAnotherPlayer Wrote:
(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?

PHP Code:
<CATEGORY Name="Ch01Level01"> {THIS IS THE CATEGORY(asTextCat)}
    <
Entry Name="LevelDoorLocked">Locked.  I need to find the key.</Entry> {THIS IS THE ENTRY IF I'M NOT MISTAKEN (asTextEntry)}
</CATEGORY> 

asSound = the sound .snt or .ogg files you want to use.

Sorry for the caps. You must see it for yourself.


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

(02-07-2013, 12:11 PM)JustAnotherPlayer Wrote:
(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?

Sorry... I thought you were asking if that was what it is.

When it comes to such as Category and Entry, you can call it whatever you want ^_^
As long as they correspond to each other.

Ex.

I had an examine area, and it needed a Category, so i thought outside the box and called it "Examine" Tongue
I'm sure it could be anything else...


RE: Memory Capsules' Text - PutraenusAlivius - 02-08-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
That didn't work. How do i set it up?


RE: Memory Capsules' Text - MulleDK19 - 02-08-2013

Alternatively, if it's an object that doesn't move, or if it's just a specific area in your map, you can use an area of the type Examine, which will show the specified text when clicking it; or an area of the type Sign, which will show the specified text when looking at it.


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

Your script should like like this:

PHP Code:
void OnStart()
{
    
SetEntityPlayerInteractCallback("ENTITY_NAME""DoEmotionFlash"false);
}

void DoEmotionFlash(string &in asEntity)
{
    
StartEffectEmotionFlash("EmotionFlash""Emotion01""ui_emotion_stone.snt");


Your .lang should look like this:

PHP Code:
<CATEGORY Name="EmotionFlash">
    <
Entry Name="Emotion01">ur text goes hereoh mah gad</Entry>
</
CATEGORY