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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My "emotionstone" isn't displaying the message!
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#1
My "emotionstone" isn't displaying the message!

So I'm making a "thank you" room and I want to use the "emotion_stone" as a way to show the message. I put it in the map, scripted the function and I wrote the extra_english.lang. But when I play the map, the message doesn't show up when I touch the stone.the screen fades to white but the message doesn't show. Should I use a different interaction script? In case you want to look at it, Here's my script...:
___________________________
void OnEnter() //Map is entered through a hidden area box and ChangeMap script, it is not started.
{
SetEntityPlayerInteractCallback("thankyoubox1", "thankyoulog", false);
}

//THANK YOU STONE
void thankyoulog(string &in asParent, string &in asChild, int alState)
{
StartEffectEmotionFlash("thankyou_list", "thankyounini", "03_in_a_bottle.snt");
}
___________________________
//Here's the extra_english.lang file:

<LANGUAGE>
<CATEGORY Name="thankyou_list">
<Entry Name="thankyounini">I leave my regards here to:
BLAH BLAH BLAH...............................................................................
.........................................
.....................................................
.....................................................................
................................
</Entry>
</CATEGORY>
</LANGUAGE>
________________________

NEVERMIND! I went into the original maps and figured out all I have to do is put in the labels ON the emotion_stone entity and it will automatically read it.
(This post was last modified: 10-09-2011, 05:24 PM by Statyk.)
10-02-2011, 04:44 PM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: My "emotionstone" isn't displaying the message!

Just wanted to point this out to you for future reference. Your syntax is incorrect.


void thankyoulog(string &in asParent, string &in asChild, int alState)

The red text is the syntax for your statement. That syntax is only correct with AddEntityCollideCallback. For

SetEntityPlayerInteractCallback

the correct syntax is

(string &in asEntity)

as shown on the script functions page


10-03-2011, 01:40 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: My "emotionstone" isn't displaying the message!

(10-03-2011, 01:40 AM)Obliviator27 Wrote: Just wanted to point this out to you for future reference. Your syntax is incorrect.


void thankyoulog(string &in asParent, string &in asChild, int alState)

The red text is the syntax for your statement. That syntax is only correct with AddEntityCollideCallback. For

SetEntityPlayerInteractCallback

the correct syntax is

(string &in asEntity)

as shown on the script functions page
No, the solution was so simple, I shouldn't have posted this. lol all i had to do was go into the Level Editor and click on the Emotion Stone, click the tab that says "entity" and fill in the category and entry callbacks. =P works fine now.

Thank you though

10-03-2011, 04:48 AM
Find




Users browsing this thread: 2 Guest(s)