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
"Unexpected token {"
Makoton Offline
Junior Member

Posts: 22
Threads: 1
Joined: Dec 2011
Reputation: 0
#1
Heart  "Unexpected token {"

Hey, hey. I've been working on a custom story of mine for about two weeks now and just recently encountered the most stupidly frustrating error ever to exist. Ever. So, because I'm a complete idiot, I can't find the troublemaking "{".

If anybody can help me out and revise the script for me, I will greatly appreciate it... and yes, I know I'm just being thick and the problem is probably fairly obvious, but I would be grateful for the assistance nonetheless.

void OnStart()
{



InteractConnectPropWithMoveObject("SecondGate","valveiron", "safedoor1",true, false, 0);
InteractConnectPropWithMoveObject("SecondGate","valveiron2", "safedoor1",true, false, 0);
SetWheelAngle("valveiron", 0, false);
SetWheelAngle("valveiron2", 0, false);
SetMoveObjectState("safedoor1", 0);



//MonsterActivate();
//wakeUp();
AddEntityCollideCallback("Player", "note_generic_1", "PickupNote", false, 1);
AddEntityCollideCallback("Player", "note_generic_2", "PickupNote", false, 1);
AddEntityCollideCallback("Player", "note_generic_3", "PickupNote", false, 1);

AddEntityCollideCallback("Player", "areaScare_01", "areaScare1", true, 1);
AddEntityCollideCallback("Player", "areaScare_02", "areaScare2", true, 1);
AddEntityCollideCallback("Makoton", "areaKillMako01", "killMako01", true, 1);

AddEntityCollideCallback("Player", "areaExamine01", "areaExamine1", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_1", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_2", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_3", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_4", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_5", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_6", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_7", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_8", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_9", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_10", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_11", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_12", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_13", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_14", "areaExamine2", true, 1);
}


//INTRO -- WAKE UP
void wakeUp()
{
FadeOut(0);
FadeIn(10);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(25, 4);
SetPlayerActive(false);
FadePlayerRollTo(60, 220, 220);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 11.0f, "beginStory");
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 3);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

void MonsterActivate()
{
SetEntityActive("Makoton", true);
ClearEnemyPatrolNodes("Makoton");

AddEnemyPatrolNode("Makoton", "Mako_1", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_2", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_3", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_4", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_5", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_6", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_7", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_8", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_9", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_10", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_11", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_12", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_13", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_14", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_15", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_16", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_17", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_18", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_19", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_20", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_21", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_22", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_23", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_24", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_25", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_26", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_27", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_28", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_29", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_30", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_31", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_32", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_33", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_34", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_35", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_36", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_37", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_38", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_39", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_40", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_41", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_42", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_43", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_44", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_45", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_46", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_47", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_48", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_49", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_50", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_51", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_52", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_53", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_54", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_55", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_56", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_57", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_58", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_59", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_60", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_61", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_62", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_63", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_64", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_65", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_66", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_67", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_68", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_69", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_70", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_71", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_72", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_73", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_74", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_75", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_76", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_77", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_78", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_79", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_80", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_81", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_82", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_83", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_84", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_85", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_86", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_87", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_88", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_89", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_90", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_91", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_92", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_93", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_94", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_95", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_96", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_97", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_98", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_99", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_100", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_101", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_102", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_103", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_104", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_105", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_106", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_107", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_108", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_109", 1, "");

}

void PickUpNote(string &in asEntity)
{
AddNote("NoteCorridors01", "");
}



void areaScare1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Makoton_Halluc1", true);
StartPlayerLookAt("AreaScare_Sound01", 10.0f, 10.0f, "");
PlaySoundAtEntity("", "enemy/grunt/amb_idle", "AreaScare_Sound01", 0, false);
GiveSanityDamage(30.0, true);
AddTimer("", 1.0f, "stopLook");
}

void areaScare2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Makoton", true);
PlaySoundAtEntity("", "enemy/grunt/amb_idle", "AreaScare_Sound01", 0, false);
GiveSanityDamage(10.0, true);
AddEnemyPatrolNode("Makoton", "Mako_99", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_100", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_101", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_102", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_103", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_105", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_106", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_107", 1, "");
}
void killMako01(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("Makoton", true);
PlayGuiSound("react_breath", 0.6f);
}



void areaExamine1(string &in asParent, string &in asChild, int alState);
{
SetMessage("Examine", "ExamineCorridorsPainting01", -1.0f)
}
void areaExamine2(string &in asParent, string &in asChild, int alState);
{
SetMessage("Examine", "ExamineCorridorsFungi01", -1.0f)
}


void stopLook(string &in asTimer)
{
StopPlayerLookAt();
FadeEnemyToSmoke("Makoton_Halluc1", true);
PlayGuiSound("react_breath", 0.6f);
}

void InteractWheel(string &in asEntity)
{
SetEntityPlayerInteractCallback("safedoor1", "", true);
}

Pardon the long slew of path nodes.
(This post was last modified: 01-21-2012, 05:27 PM by Makoton.)
01-21-2012, 03:46 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: "Unexpected token {"

(01-21-2012, 03:46 AM)Makoton Wrote: Hey, hey. I've been working on a custom story of mine for about two weeks now and just recently encountered the most stupidly frustrating error ever to exist. Ever. So, because I'm a complete idiot, I can't find the troublemaking "{".

If anybody can help me out and revise the script for me, I will greatly appreciate it... and yes, I know I'm just being thick and the problem is probably fairly obvious, but I would be grateful for the assistance nonetheless.




void OnStart()
{



InteractConnectPropWithMoveObject("SecondGate","valveiron", "safedoor1",true, false, 0);
InteractConnectPropWithMoveObject("SecondGate","valveiron2", "safedoor1",true, false, 0);
SetWheelAngle("valveiron", 0, false);
SetWheelAngle("valveiron2", 0, false);
SetMoveObjectState("safedoor1", 0);



//MonsterActivate();
//wakeUp();

AddEntityCollideCallback("Player", "note_generic_1", "PickupNote", false, 1);
AddEntityCollideCallback("Player", "note_generic_2", "PickupNote", false, 1);
AddEntityCollideCallback("Player", "note_generic_3", "PickupNote", false, 1);

AddEntityCollideCallback("Player", "areaScare_01", "areaScare1", true, 1);
AddEntityCollideCallback("Player", "areaScare_02", "areaScare2", true, 1);
AddEntityCollideCallback("Makoton", "areaKillMako01", "killMako01", true, 1);

AddEntityCollideCallback("Player", "areaExamine01", "areaExamine1", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_1", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_2", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_3", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_4", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_5", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_6", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_7", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_8", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_9", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_10", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_11", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_12", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_13", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_14", "areaExamine2", true, 1);
}


//INTRO -- WAKE UP
/*void wakeUp()
{
FadeOut(0);
FadeIn(10);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(25, 4);
SetPlayerActive(false);
FadePlayerRollTo(60, 220, 220);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 11.0f, "beginStory");
} */


void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 3);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

/*void MonsterActivate()
{
SetEntityActive("Makoton", true);
ClearEnemyPatrolNodes("Makoton");

AddEnemyPatrolNode("Makoton", "Mako_1", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_2", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_3", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_4", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_5", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_6", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_7", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_8", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_9", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_10", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_11", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_12", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_13", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_14", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_15", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_16", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_17", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_18", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_19", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_20", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_21", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_22", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_23", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_24", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_25", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_26", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_27", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_28", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_29", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_30", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_31", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_32", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_33", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_34", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_35", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_36", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_37", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_38", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_39", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_40", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_41", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_42", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_43", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_44", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_45", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_46", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_47", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_48", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_49", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_50", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_51", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_52", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_53", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_54", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_55", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_56", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_57", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_58", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_59", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_60", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_61", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_62", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_63", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_64", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_65", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_66", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_67", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_68", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_69", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_70", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_71", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_72", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_73", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_74", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_75", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_76", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_77", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_78", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_79", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_80", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_81", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_82", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_83", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_84", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_85", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_86", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_87", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_88", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_89", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_90", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_91", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_92", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_93", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_94", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_95", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_96", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_97", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_98", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_99", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_100", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_101", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_102", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_103", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_104", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_105", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_106", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_107", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_108", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_109", 1, "");

}

*/


void PickUpNote(string &in asEntity)
{
AddNote("NoteCorridors01", "");
}



void areaScare1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Makoton_Halluc1", true);
StartPlayerLookAt("AreaScare_Sound01", 10.0f, 10.0f, "");
PlaySoundAtEntity("", "enemy/grunt/amb_idle", "AreaScare_Sound01", 0, false);
GiveSanityDamage(30.0, true);
AddTimer("", 1.0f, "stopLook");
}

void areaScare2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Makoton", true);
PlaySoundAtEntity("", "enemy/grunt/amb_idle", "AreaScare_Sound01", 0, false);
GiveSanityDamage(10.0, true);
AddEnemyPatrolNode("Makoton", "Mako_99", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_100", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_101", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_102", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_103", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_105", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_106", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_107", 1, "");
}
void killMako01(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("Makoton", true);
PlayGuiSound("react_breath", 0.6f);
}



void areaExamine1(string &in asParent, string &in asChild, int alState);
{
SetMessage("Examine", "ExamineCorridorsPainting01", -1.0f)
}
void areaExamine2(string &in asParent, string &in asChild, int alState);
{
SetMessage("Examine", "ExamineCorridorsFungi01", -1.0f)
}


void stopLook(string &in asTimer)
{
StopPlayerLookAt();
FadeEnemyToSmoke("Makoton_Halluc1", true);
PlayGuiSound("react_breath", 0.6f);
}

void InteractWheel(string &in asEntity)
{
SetEntityPlayerInteractCallback("safedoor1", "", true);
}


Pardon the long slew of path nodes.
I'm not sure because we weren't given the location (*number, number*) of the issue on the error message. I am not sure, but I think it's because in the OnStart, you have two commented functions. Then didn't comment them in the .hps, so I did that... see if it fixes it.

Changed/noted parts are in bold above.


(This post was last modified: 01-21-2012, 04:10 AM by Statyk.)
01-21-2012, 04:08 AM
Find
Makoton Offline
Junior Member

Posts: 22
Threads: 1
Joined: Dec 2011
Reputation: 0
#3
RE: "Unexpected token {"

(01-21-2012, 04:08 AM)Statyk Wrote:
(01-21-2012, 03:46 AM)Makoton Wrote: Hey, hey. I've been working on a custom story of mine for about two weeks now and just recently encountered the most stupidly frustrating error ever to exist. Ever. So, because I'm a complete idiot, I can't find the troublemaking "{".

If anybody can help me out and revise the script for me, I will greatly appreciate it... and yes, I know I'm just being thick and the problem is probably fairly obvious, but I would be grateful for the assistance nonetheless.



void OnStart()
{



InteractConnectPropWithMoveObject("SecondGate","valveiron", "safedoor1",true, false, 0);
InteractConnectPropWithMoveObject("SecondGate","valveiron2", "safedoor1",true, false, 0);
SetWheelAngle("valveiron", 0, false);
SetWheelAngle("valveiron2", 0, false);
SetMoveObjectState("safedoor1", 0);



[b]//MonsterActivate();
//wakeUp();[/b]
AddEntityCollideCallback("Player", "note_generic_1", "PickupNote", false, 1);
AddEntityCollideCallback("Player", "note_generic_2", "PickupNote", false, 1);
AddEntityCollideCallback("Player", "note_generic_3", "PickupNote", false, 1);

AddEntityCollideCallback("Player", "areaScare_01", "areaScare1", true, 1);
AddEntityCollideCallback("Player", "areaScare_02", "areaScare2", true, 1);
AddEntityCollideCallback("Makoton", "areaKillMako01", "killMako01", true, 1);

AddEntityCollideCallback("Player", "areaExamine01", "areaExamine1", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_1", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_2", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_3", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_4", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_5", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_6", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_7", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_8", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_9", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_10", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_11", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_12", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_13", "areaExamine2", true, 1);
AddEntityCollideCallback("Player", "areaExamineFungi_14", "areaExamine2", true, 1);
}


//INTRO -- WAKE UP
[b]/*void wakeUp()
{
FadeOut(0);
FadeIn(10);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(25, 4);
SetPlayerActive(false);
FadePlayerRollTo(60, 220, 220);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 11.0f, "beginStory");
} */[/b]

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 3);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

[b]/*void MonsterActivate()
{
SetEntityActive("Makoton", true);
ClearEnemyPatrolNodes("Makoton");

AddEnemyPatrolNode("Makoton", "Mako_1", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_2", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_3", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_4", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_5", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_6", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_7", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_8", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_9", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_10", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_11", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_12", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_13", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_14", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_15", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_16", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_17", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_18", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_19", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_20", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_21", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_22", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_23", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_24", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_25", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_26", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_27", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_28", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_29", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_30", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_31", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_32", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_33", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_34", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_35", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_36", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_37", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_38", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_39", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_40", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_41", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_42", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_43", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_44", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_45", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_46", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_47", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_48", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_49", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_50", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_51", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_52", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_53", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_54", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_55", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_56", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_57", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_58", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_59", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_60", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_61", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_62", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_63", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_64", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_65", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_66", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_67", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_68", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_69", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_70", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_71", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_72", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_73", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_74", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_75", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_76", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_77", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_78", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_79", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_80", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_81", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_82", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_83", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_84", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_85", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_86", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_87", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_88", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_89", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_90", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_91", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_92", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_93", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_94", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_95", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_96", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_97", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_98", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_99", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_100", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_101", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_102", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_103", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_104", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_105", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_106", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_107", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_108", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_109", 1, "");

}

*/[/b]

void PickUpNote(string &in asEntity)
{
AddNote("NoteCorridors01", "");
}



void areaScare1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Makoton_Halluc1", true);
StartPlayerLookAt("AreaScare_Sound01", 10.0f, 10.0f, "");
PlaySoundAtEntity("", "enemy/grunt/amb_idle", "AreaScare_Sound01", 0, false);
GiveSanityDamage(30.0, true);
AddTimer("", 1.0f, "stopLook");
}

void areaScare2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Makoton", true);
PlaySoundAtEntity("", "enemy/grunt/amb_idle", "AreaScare_Sound01", 0, false);
GiveSanityDamage(10.0, true);
AddEnemyPatrolNode("Makoton", "Mako_99", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_100", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_101", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_102", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_103", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_105", 1, "");
AddEnemyPatrolNode("Makoton", "Mako_106", 0, "");
AddEnemyPatrolNode("Makoton", "Mako_107", 1, "");
}
void killMako01(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("Makoton", true);
PlayGuiSound("react_breath", 0.6f);
}



void areaExamine1(string &in asParent, string &in asChild, int alState);
{
SetMessage("Examine", "ExamineCorridorsPainting01", -1.0f)
}
void areaExamine2(string &in asParent, string &in asChild, int alState);
{
SetMessage("Examine", "ExamineCorridorsFungi01", -1.0f)
}


void stopLook(string &in asTimer)
{
StopPlayerLookAt();
FadeEnemyToSmoke("Makoton_Halluc1", true);
PlayGuiSound("react_breath", 0.6f);
}

void InteractWheel(string &in asEntity)
{
SetEntityPlayerInteractCallback("safedoor1", "", true);
}

Pardon the long slew of path nodes.
I'm not sure because we weren't given the location (*number, number*) of the issue on the error message. I am not sure, but I think it's because in the OnStart, you have two commented functions. Then didn't comment them in the .hps, so I did that... see if it fixes it.

Changed/noted parts are in bold above.
Thanks for the reply, but the script still doesn't work. I do have the location this time, though! (227,1) and (231, 1).

(This post was last modified: 01-21-2012, 04:30 AM by Makoton.)
01-21-2012, 04:29 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: "Unexpected token {"

Nevermind! I see it!

void areaExamine1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Examine", "ExamineCorridorsPainting01", -1.0f);
}
void areaExamine2(string &in asParent, string &in asChild, int alState)
{
SetMessage("Examine", "ExamineCorridorsFungi01", -1.0f);
}



The semicolons were on the syntax and not the functions
01-21-2012, 05:49 AM
Find
Makoton Offline
Junior Member

Posts: 22
Threads: 1
Joined: Dec 2011
Reputation: 0
#5
RE: "Unexpected token {"

(01-21-2012, 05:49 AM)Statyk Wrote: Nevermind! I see it!

void areaExamine1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Examine", "ExamineCorridorsPainting01", -1.0f);
}
void areaExamine2(string &in asParent, string &in asChild, int alState)
{
SetMessage("Examine", "ExamineCorridorsFungi01", -1.0f);
}



The semicolons were on the syntax and not the functions
Thanks a ton! Big Grin
Really good to be able to get back to work now. You're a lifesaver, man. xD

01-21-2012, 01:17 PM
Find




Users browsing this thread: 1 Guest(s)