Hello there buds, after i played "almost" all the custom stories out there..my cleaver mind told me to make my very own Custom Story!
i was doing great until i that fearsome big jawed monster called "Scripting" stood on my way and told me that there's no way for me to pass him..
i crumbled to the ground..crying and yelling for help! and here i am.. seeing the light from above..
ok enough dramatic crap and here's the problem: idk what's wrong but almost every thing i do in scripting part goes wrong, like now i want that monster to break in a room after the player picks something up.. he doesn't appear! and worst of all, the items/keys/Notes i put are empty even when i write the desc/name in the Language file..
P.S: how can i do a scare moment? (like when you see a corpse and the camera shake with a sanity decrease)
and before you ask here's the map's HPS file:
void OnStart()
{
AddUseItemCallback("", "Closet_Key", "Closet_1", "KeyOnDoor", true);
SetEntityCallbackFunc("Emperor's Head", "NoteCallback");
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Closet_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Closet_1", 0, false);
RemoveItem("Closet_Key");
}
void NoteCallback(string &in entity, string &in type)
{
if(type == "OnPickup") SetEntityActive("Suiter", true);
}
And the language file:
chaos started to haul over and things became nasty..but with style
A silver key to the main hall
Main hall key
A small rusty key.
Closet Key
Survivors
If you're reading this, please go through the trap door.. it's the only way out! [br]And don't forget to get whatever's left in the storage. [br]The Chief.
Please help us..
Take my head and throw it into the holy well, it's the only way to send these demons back to Oblivion[br][br][br]Good Luck [br] Emperor Jarry Willson.
Please help a hopeless nooby out