(05-24-2013, 09:40 PM)BeeKayK Wrote: A single mistake in the .lang file can result in the whole file not working.
You could show us the file, if it isn't too long.
EDIT: I see you have already posted it. My mistake. I'll take a look
In your second question about the script:
{
SetSwingDoorLocked("Front_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Front_door", 0, false);
RemoveItem("FrontDoorKey");
}
This part needs a "void something" to work.
when you want something to happen in your map, by script, it looks like this:
void NameOfScript(Parameters, specifying what kind of script)
{
Here you put all your script lines
}
///////////////////////////
Here is the mistake in the .lang file:
</CATEGORY Name ="Inventory">
It should be
<CATEGORY Name ="Inventory">
You only put a / when you want to end something. Here you are starting something
I thought it was working and for some reason it's not. When I go to pick up the key and read the note, the text does not show up. Here is my .lang file now:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Willam Thomas has always lived a simple, quiet life. This is all about to change on one spring morning in Wales, Ireland, in 1934.</Entry>
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_FrontDoorKey">"Key to the front door."</Entry>
<Entry Name="ItemName_FrontDoorKey">Front Door Key</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_ToDoList_Name">To Do List</Entry>
<Entry Name="Note_ToDoList_Text">Today is the big day. I've finally written down everything I need to do today. I've rang the taxi. I must meet them out side of town on the main road. Next, I must carry my belongings out to the road with me. I also shouldn't forget the taxi fare and, of course, my favorite little paperweight. I think I put it in a chest around the side of the house...</Entry>
</CATEGORY>
</LANGUAGE>
Do you think there was anything else wrong with it?