Okay, I ask for help once again. Hope you don't mind :<
OnStart()
{
SetEntityPlayerInteractCallback("lantern_1", "Monster1", true);
}
void Monster1(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
SetEntityActive("servant_grunt_1", true);
AddTimer("Monster", 4, "Monster2");
}
void Monster2(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEntityCollideCallback("servant_grunt_1", "PathNodeArea_2", "Leave1", true, 1);
}
void Leave1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", false);
SetEntityActive("Sound_1", true);
AddTimer("Doorclose", 3.5, "Doorclosed");
}
void Doorclosed(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Sound_1", false);
}
I've tried looking through the script but I can't find out what's wrong. When I start it, it just says "FATAL ERROR: Could not load script file 'custom_stories/Test/maps/Cellar.hps'! main (1, 8) : ERR : Expected identifier"
And instead of correcting my script, can you tell me what I did wrong so I can learn from my mistake?