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
(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.
(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...
(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?
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.
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
Pages: 1 2 3