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
I need quick help on custom story creating!
Zirg Offline
Junior Member

Posts: 14
Threads: 4
Joined: Feb 2011
Reputation: 0
#8
RE: I need quick help on custom story creating!

Ok, first of all, all the things you want to do, aren't done in the leveleditor but need scripting to work.

1) How do i make a key open a door or cabinet i want?

First, place a key somewhere on your map in the leveleditor and name it. (NAMEOFYOURKEY)
then open your .lang file and add:

<CATEGORY Name="Inventory">
      <Entry Name="ItemName_NAMEOFYOURKEY">KEYNAME</Entry>
      <Entry Name="ItemDesc_NAMEOFYOURKEY">KEYDESCRIPTION</Entry>
</CATEGORY>

Now open your .hps file and add:

void OnStart()
{
    AddUseItemCallback("", "NAMEOFYOURKEY", "NAMEOFYOURDOOR", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("NAMEOFYOURDOOR", false, true);
    PlaySoundAtEntity("", "unlock_door.snt", "NAMEOFYOURDOOR", 0.0f, true);
}


2) How do i test my custom map in-game?

Create a folder in the custom_stories folder in your installed game folder.
Give it the name of your customstory. (MYCUSTOMSTORY)
inside that folder create:
- an extra_english.lang file
- an customstories.cfg file
- another folder with the name: maps
- inside the maps folder create a MYCUSTOMSTORY.hps file
- save your own created map in the 'maps' folder and name it MYCUSTOMSTORY.map
(make sure your .map and .hps files have the same name)

you can follow these tutorial videos to see what needs to be put into the specified files:
http://amnesia.treesoft.dk/tutorials/Cus...Setup1.wmv
http://amnesia.treesoft.dk/tutorials/Cus...Setup2.wmv
http://amnesia.treesoft.dk/tutorials/Cus...Setup3.wmv

Then fire up Amnesia.exe and select your custom story in the Custom Story menu.

3) How do i create notes and write things in it?

First put this in your .lang file:
<CATEGORY Name="Journal">
<Entry Name="Note_NAMEOFYOURNOTE_Name">NOTETITLE</Entry>
<Entry Name="Note_NAMEOFYOURNOTE_Text">NOTETEXT</Entry>
</CATEGORY

Now place a note somewhere on your map in the leveleditor and on the entity tab in the NoteText field, put: NAMEOFYOURNOTE.


that should be the most direct possible answers to your three questions.
the best thing is, is that you probably still don't have a clue on what to do. Tongue
(This post was last modified: 02-22-2011, 07:09 PM by Zirg.)
02-22-2011, 01:15 PM
Find


Messages In This Thread
RE: I need quick help on custom story creating! - by Zirg - 02-22-2011, 01:15 PM



Users browsing this thread: 1 Guest(s)