RE: Cant get my custom story to show! PLEASE help!!
Why it doesn't come up with a description is because your .lang file is wrong. You shouldn't have "</RESOURCES>" if there is no "<RESOURCES>", so I took it out. And you didn't close an entry at the bottom. You also had your </LANGUAGE> in the wrong spot. Lastly, you had the wrong category name for your description. (copy and paste this into your current .lang):
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Your brothers friend invited you over to
his new house, you have to go into the storage to get a crowbar, but
people say if you go in there strange things will happen to you...You
then set out to find your brother as he has wonderd of. What will you
encounter when you go looking for him?</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_Test01_Name">Note</Entry>
<Entry Name="Note_Test01_Text">Hey, I know your busy and everything but please can you do me this favour?
If yes, can you go down to the storage and get me a crowbar, i need it to open this door, it is quite dark down
there, so be sure to get the lantern it
should be in one of the cabinets.
No one else i asked dare go down there, they say if you do strange things will happen to you,
no one knows why...
But as you dont believe in those things id appreciate it if you could.
Alex.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Storage1">Item description</Entry>
<Entry Name="ItemName_Storage1">Item name</Entry>
</CATEGORY>
</LANGUAGE>
As for the script, I think you should study the scripting process a bit more and perhaps make names of objects a bit more unique. "door" is a strange way to go about scripting (at least in my opinion):
void OnStart()
{
AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true);
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door", false, true);
PlaySoundAtEntity("", "unlock_door", "door", 0, false);
RemoveItem("ITEMNAME");
}
(This post was last modified: 07-08-2012, 05:06 PM by Statyk.)
|