The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Something's wrong?
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#1
Something's wrong?

About the extra_english file:

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="Dark Territory">
<Entry Name="Description">You wake in a huge mansion with amnesia.</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_testament_Name">Johan Gambolputty's Testament</Entry>
<Entry Name="Note_testament_Text">My dearest Joanna, I don't have much time to write this to you because there are some people coming after me... Of course I'm letting you EVERYTHING I have... or... had... I can hear them knocking on the door. It's time... Sorry.[br] I love you. [br] [br] Johan Gambolputty</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_livingkey">Living Key</Entry>
<Entry Name="ItemDesc_livingkey">Let's hope this is the key to the door over there.</Entry>
</CATEGORY>
</LANGUAGE>

The description is not appearing and there's no text in the note, but the name and description of the key are working, such as the name of the level. I couldn't find anything wrong (but I don't know nothing about scripting, so...).

And the .hps file (it has the same name as the .map file):

////////////////////////////
// Run first time starting map
void wakeUp()
{
FadeOut(2);
FadeIn(20);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(60, 350, 350);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 20.0f, "beginStory");
AddUseItemCallback("", "livingkey", "livingdoor", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("livingdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "livingdoor", 0, false);
RemoveItem("livingkey");
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

In this file, I've copied the code of the thread over here: http://www.frictionalgames.com/forum/thread-4626.html , but this intro isn't working, such as the key (livingkey).

Please, help!

And also... anybody know how to make things move?



(This post was last modified: 10-19-2011, 12:46 AM by Victor.)
10-19-2011, 12:44 AM
Find


Messages In This Thread
Something's wrong? - by Victor - 10-19-2011, 12:44 AM
RE: Something's wrong? - by Rapture - 10-19-2011, 02:13 AM



Users browsing this thread: 1 Guest(s)