HeavenSh0ck
Junior Member
Posts: 6
Threads: 1
Joined: May 2012
Reputation:
0
|
[SOLVED!] Custom story wont show up
I'm working on a custom story, I've finished the map, I've already scripted so theres a key to a door. But when I wanna test run the custom story doesn't show up in the list.
Heres my extra_english.lang
You wake up inside a jail cell, you can't remember how you got inside. You don't even remember your name. As you explore the Castle of the Evil, things start to slowly get back to you.
"This must open the cell door."
Cell Key
Heres custom_story settings.cfg
ImgFile = "story.png"
Name = "The Castle of the Evil"
Author = "HeavenSh0ck"
MapsFolder = "maps/"
StartMap = "The Castle of the Evil"
StartPos = "PlayerStartArea1"
/>
My map .hps file
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallBack("", "celldoorkey", "celldoor", "UsedKeyOnDoor", true);
}
void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("celldoor", false, true);
PlaySoundAtEntity("", "unlock_door", "celldoor", "0", false);
RemoveItem(celldoorkey);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
(This post was last modified: 05-06-2012, 12:48 PM by HeavenSh0ck.)
|
|
05-06-2012, 10:29 AM |
|