The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Can't get this script working
FaintedPhantom Offline
Junior Member

Posts: 2
Threads: 1
Joined: May 2012
Reputation: 0
#1
Can't get this script working

Hi guys, I've been working on a costum story for like already a week, but I can't get this script working...
I've been watching 4 youtubers, but I just can't seem to get it working..
Could someone please help?
My .HPS file :


void OnStart()
{
AddUseItemCallback("", "Keyone", "doorone", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Keytwo", "doortwo", "UsedKeyOnDooor", true);
SetEntityPlayerInteractCallback("lantern", "ActivateMonster", true);
AddUseItemCallback("", "knifeone", doorthree", "buyone", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("doorone", false, true);
PlaySoundAtEntity("", "unlock_door", "doorone", 0, false);
RemoveItem("Keyone");
}

void UsedKeyOnDooor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("doortwo", false, true);
PlaySoundAtEntity("", "unlock_door", "doortwo", 0, false);
RemoveItem("Keytwo");
}

void ActivateMonster(string &in item)
{
SetEntityActive("enemyone", true);
}

void buyone(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("doorthree", false, true);
PlaySoundAtEntity("", "unlock_door", "doorthree", 0, false);
RemoveItem("knifeone");
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}

my custom_story_settings.cfg



Name = "StoryOfAPhantom"
Author = "FaintedPhantom"
Imgfile = "Image.JPG"

Startmap = "Eigenmap.MAP"
Startpos = "PlayerStartArea_1"
/>


The custom story won't show up..
Yesterday it still did, but then it gave me an error, about FATAL ERROR: something something (47,2)
or something..
Thanx already
(This post was last modified: 05-20-2012, 08:48 AM by FaintedPhantom.)
05-20-2012, 07:12 AM
Find


Messages In This Thread
Can't get this script working - by FaintedPhantom - 05-20-2012, 07:12 AM
RE: Can't get this script working - by Damascus - 05-20-2012, 08:42 AM



Users browsing this thread: 1 Guest(s)