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
Script Help Death Hint?
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#1
Death Hint?

Ok, so i'm having trouble with the Death Hints... I have this.



void CheckDoorFunc(string &in asParent, string &in asChild, int alState)
{
if (GetLocalVarInt("Exit") == 3)
{
SetLevelDoorLocked("UpperCellar", false);
SetEntityActive("Charles", true);
AddEnemyPatrolNode("Charles", "PN1", 0.1, "Run");
AddEnemyPatrolNode("Charles", "PN2", 0, "Run");
SetDeathHint("DeathHint", "HintRun");
}
}

And the .lang


<CATEGORY Name="DeathHint">
<Entry Name="HintRun">Run Faster</Entry>
</CATEGORY>

But the deathhint doesn't show, Help?

EDIT: Everything OTHER than the deathhint works. The Script functions and everything else in the .lang file, its just the Run Faster doesnt show.

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-20-2012, 07:07 AM by Tripication.)
01-20-2012, 07:00 AM
Find Reply
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Death Hint?

It is likely that your lang file just has a syntax error.

(This post was last modified: 01-20-2012, 09:22 AM by palistov.)
01-20-2012, 09:21 AM
Find Reply
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#3
RE: Death Hint?

(01-20-2012, 09:21 AM)palistov Wrote: It is likely that your lang file just has a syntax error.
Yes...um...wut

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-20-2012, 10:42 AM
Find Reply
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Death Hint?

Think he means that it isn't named right.

(This post was last modified: 01-20-2012, 11:11 AM by flamez3.)
01-20-2012, 11:10 AM
Find Reply
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#5
RE: Death Hint?

um, but it is...isn't it?

And if it had a syntax error, wouldn't it disable the Language file, making everything else unreadable...

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-20-2012, 11:23 AM by Tripication.)
01-20-2012, 11:20 AM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Death Hint?

Try using checkpoints instead.

Tutorials: From Noob to Pro
01-20-2012, 11:34 AM
Website Find Reply




Users browsing this thread: 1 Guest(s)