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
[PLEASE HELP!!] Map/Script Changes Not Applying (Weird Glitch...)
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: [PLEASE HELP!!] Map/Script Changes Not Applying (Weird Glitch...)

(12-24-2011, 05:57 AM)Xvideogamer720X Wrote: Alright, here it is:


////////////////////////////
// Run first time starting map
void OnStart()
{
//Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
}

AddEntityCollideCallback("Player", "monsterchase", "startmonsterchase", true, 1);
AddEntityCollideCallback("Player", "startrunevent", "startrunevent", true, 1);
AddEntityCollideCallback("Player", "spawnmonstertwo", "spawnothermonster", true, 1);
AddEntityCollideCallback("Player", "whereisthistakingme", "darkpath", true, 1);
AddEntityCollideCallback("Player", "deadend", "deadendmessage", true, 1);
StopSound("monsterout", 0);
SetLanternDisabled(false);

}

void startmonsterchase(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("closetgrunt", true);
FadeInSound("monsterout", 0, false);
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("closetgrunt", "PathNodeArea_12", 0, "");
}

void startrunevent(string &in asParent, string &in asChild, int alState)
{
PlayMusic("run.ogg", true, 1, 1, 0, true);
ShowEnemyPlayerPosition("closetgrunt");
}

void spawnothermonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("closetgrunt", false;
SetEntityActive("grunt", true);
ShowEnemyPlayerPosition("grunt");
}

void darkpath(string &in asParent, string &in asChild, int alState)
{
SetMessage("MessageDisplay", "Message_darkpath_Name", 2.5f);
}

void deadendmessage(string &in asParent, string &in asChild, int alState)
{
SetMessage("MessageDisplay", "Message_deadend_Name", 3.0f);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}
Try removing the bolded phrase and see what happens... >> Not sure what could be wrong but that's my guess.

12-24-2011, 06:08 AM
Find


Messages In This Thread
RE: [PLEASE HELP!!] Map/Script Changes Not Applying (Weird Glitch...) - by Statyk - 12-24-2011, 06:08 AM



Users browsing this thread: 1 Guest(s)