06-15-2011, 11:55 PM
Hello! So I was just about to finish my Custom story, and when I tryed to start it, this came up:
And also I am kind of a noob on this stuff, but this is what it says on the .HPS file:
Did I do something wrong? Please reply!
Quote:FATAL ERROR: Could not load script file 'custom_stories/Test1/custom_stories/Test1/maps/Testt1.hps'! main (6, 46) : ERR : Expected ')' or ','
And also I am kind of a noob on this stuff, but this is what it says on the .HPS file:
Quote:void OnStart()
{
AddUseItemCallback("", "forsakenkey_1", "cellar_wood01_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string %in asEntity)
{
SetSwingDoorLocked("cellar_wood01_1", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_wood01_1", 0, false);
RemoveItem("forsakenkey_1"
}
void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 4, "");
PlayGuiSound("enemy/grunt/enabled03.ogg", 1.0f);
}
Did I do something wrong? Please reply!