(07-18-2012, 01:32 AM)Mastersarge Wrote: Hello! My name's Mastersarge! I recently purchased and played Amnesia for the first time. But now, I want to design my own CS for the first time. ^^ But I need some help. If anyone here who is knowledgeable in scripting please see me out. Also, if there's anyone willing to offer me advice and help, I would greatly appreciate it.
Hey I'm not a master, but I have learned most of what I know form this website!
http://wiki.frictionalgames.com/hpl2/amn..._functions
That has 99% of all functions usable in the hps file.
Just in case you dont know anything, here are some important things you NEED to know
First, go to your redist folder in your Amnesia folder. There will be a folder called custom stories. Open it and create a folder in it called whatever you want. You need three more things in here. You need a folder called maps, a config file called custom_story_settings.cfg, and the lang file called extra_english.lang. In the maps file, you will have one thing when you start. the hps file. you will name this wile like this (STORY NAME).hps The layout for this file is below. Now for your cfg. layout for that is also below. and your lang is below as well.
here is how you write out the .hps file. name the file (YOUR MAP FILE NAME).hps This is just the layout for the hps where you will add in your script.
////////////////////////////
//Run first time starting map
void OnStart()
{
}
////////////////////////////
//Run when entering map
void OnEnter()
{
}
////////////////////////////
//Run when leaving map
void OnLeave()
{
}
Here is your custom_story_settings.cfg
<Main
Name="MAP NAME"
Author="MAP AUTHOR"
MapsFolder="maps/"
StartMap="YOUR MAP NAME".map
StartPos="PlayerStartArea_1
/>
Note that you will name your start position area whatever you name this one in the cfg!
Now here is the layout for the extra_english.lang Note that this part is only going to contain the description of the map
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">YOUR MAP DESCRIPTION</Entry>
</CATEGORY>
</LANGUAGE>
This should be all you need to start out. Make your map with the Amnesia Map Editor. It can be found in MANY places. Ask somebody more skilled than me if you need anything else! Your Computer would be a GREAT person to ask. Awesome scripter! Have fun creating!