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
extra_english.lang Not Working
Zaffre Away
Posting Freak

Posts: 867
Threads: 50
Joined: Jul 2012
Reputation: 30
#1
extra_english.lang Not Working

Hello. I recently posted about how my stories weren't showing up, but that's sorted out. Here's my error: the extra_english.lang isn't working. I've tried editing it, but to no avail. Here are my scripts; I followed them from a video, as I'm new to coding. It could just be my ignorance.

01_tutorial.hps (the main map):

Spoiler below!
void OnStart()
{
SetLocalVarInt("DoorLocked", 1);
AddUseItemCallback("", "key_study_1", "level_wood_1", "FUNCTION", true);
AddUseItemCallback("", "key_study_2", "mansion_1", "FUNCTION2", true);
SetEntityPlayerInteractCallback("mansion_1", "FUNCTION3", false);
}

void OnEnter()
{

}

void OnLeave()
{

}
void FUNCTION(string &in item, string &in door)
{
SetLevelDoorLocked("level_wood_1", false);
PlayGuiSound("unlock_door.snt", 100);
RemoveItem("key_study_1");
}
void FUNCTION2(string &in item, string &in door)
{
SetSwingDoorLocked("mansion_1", false, true);
PlayGuiSound("unlock_door.snt", 100);
RemoveItem("key_study_2");
SetLocalVarInt("DoorLocked", 0);
}
void FUNCTION3(string &in entity)
{
if(GetLocalVarInt("DoorLocked") == 1)
{
SetMessage("Messages", "doorlock2", 3);
}
}

custom_story_settings.cfg:

Spoiler below!
<Main
Name="Testing Story"
Author="Zaffre"
ImgFile="preview.jpg"

StartMap="01_tutorial.map"
StartPos="PlayerStartArea_1"
/>

extra_english.lang:

Spoiler below!
<LANGUAGE>
<RESOURCES>
</RESOURCES>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description>Testing grounds.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">The heavy door is locked.</entry>
<Entry Name="doorlock2">The wooden door is locked.</entry>

</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_key1>A silver key coated with rust.</Entry>
<Entry Name="ItemName_key1>Rusty Key</Entry>
<Entry Name="ItemDesc_key2>A silver key. It looks new.</Entry>
<Entry Name="ItemName_key2>Silver Key</Entry>
</CATEGORY>

</LANGUAGE>

Additional Info: I have two keys. Their custom IDs are key1 an key2. The tutorial series is made by XXVengeanceFilmsXX on YouTube. Thanks in advance.

As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details.
(This post was last modified: 08-13-2012, 05:32 PM by Zaffre.)
08-13-2012, 05:31 PM
Find


Messages In This Thread
extra_english.lang Not Working - by Zaffre - 08-13-2012, 05:31 PM
RE: extra_english.lang Not Working - by Kurton - 08-16-2012, 06:00 AM



Users browsing this thread: 1 Guest(s)