Electrofuze
Junior Member
Posts: 13
Threads: 3
Joined: Sep 2011
Reputation:
0
|
Scripting doesnt work. Help!
For some reason my custom story i am testing wont apear on the custom story list and these are my configs for it
Custom_Story_Settings.cfg
< Main
Name = "LivingNightmare"
Author = "Electrofuze"
Imgfile = "Amnesia-Shambles"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_TheHowling.map
Startpos = "PlayerStartArea_2"
/>
00_Thehowling.hps
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "SmallStorageRoomkey", "SmallStorageRoom", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Smallstorageroom", false, true);
PlaySoundAtEntity("", "unlock_door", "SmallStorageRoom", 0, false);
RemoveItem("SmallStorageRoomkey");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
extra_english.lang
< LANGUAGE>
< CATEGORY Name="Livingnightmare">
< Entry Name="Description">Just a description.</Entry>
< /CATEGORY>
< CATEGORY Name="Journal">
< Entry Name="Explaining_Name">Explaining</Entry>
< Entry Name="Explaining_Text">This is a test note.</Entry>
< /CATEGORY>
< /LANGUAGE>
thats what i have and for the locations
My customstory settings are in my Livingnightmare Directory same goes for extra english lang
and then Maps/ch01 i have my map and my hps folder
I hope thats correct. If it isnt can you guys help me if i need to change anything
(This post was last modified: 10-01-2011, 06:56 PM by Electrofuze.)
|
|
10-01-2011, 04:25 PM |
|