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
No Author Offline
Posting Freak

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

(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: (Select All)
<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.

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

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

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

Trying is the first step to success.
02-07-2013, 03:48 PM
Find
PutraenusAlivius Offline
Posting Freak

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

(02-07-2013, 09:01 AM)NaxEla Wrote: Use the function:
PHP Code: (Select All)
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?

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-08-2013, 07:19 AM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#24
RE: Memory Capsules' Text

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.

[Image: 16455.png]
02-08-2013, 07:29 AM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#25
RE: Memory Capsules' Text

Your script should like like this:

PHP Code: (Select All)
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: (Select All)
<CATEGORY Name="EmotionFlash">
    <
Entry Name="Emotion01">ur text goes hereoh mah gad</Entry>
</
CATEGORY

In Ruins [WIP]
02-08-2013, 07:42 AM
Find




Users browsing this thread: 1 Guest(s)