Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [STILL HELP NEEDED] World not loading correctly
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#18
RE: [STILL NEED HELP] World not loading correctly

(07-03-2012, 05:57 AM)Statyk Wrote: I hate asking this but is your game pirated? Be honest, please.
I got my game from HumbleBundle.

void OnStart()

{
AddUseItemCallback("", "Key_1", "castle_1", "KeyOnDoor", true);
AddUseItemCallback("", "Key_2", "castle_2", "KeyOnDoor1", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "CloseDoorFunc", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "CloseDoorFunc2", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_3", "ScareFake", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "GruntHallucination", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_5", "KnightScare", true, -1);
AddEntityCollideCallback("Player", "ScriptArea_6", "CabinateScare", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_7", "FlyingBarrel", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_8", "Fade1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_9", "Fadein1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_10", "Flashback1", true, 1);
SetEntityPlayerInteractCallback("Key_1", "ActivateMonster1", true);
AddEntityCollideCallback("Player", "ScriptArea_11", "DoorHole1", true, 1);
SetEntityPlayerInteractCallback("Knife_1", "Murder", true);
//SetEntityCallbackFunc("Knife_1", "Murder");
}

void Murder(string &in asEntity)
{
StopMusic(1, 0);
FadeIn(1);
AddTimer("Timer2", 4, "Into2");
GetPlayerSpeed();
SetPlayerMoveSpeedMul(0);
}

void Into2(string &in asTimer)
{
FadeOut(1);
AddTimer("Timer3", 1, "Sounds1");
}

void Sounds1(string &in asTimer)
{
ChangeMap("02.map", "PlayerStartArea_2", "", "");

//addTimer("Timer4", 27, "Neworld1");
}

//void Neworld1(string &in asTimer)
//{
//addTimer("Timer5", 2, "Loaded1");
//PlaySoundAtEntity("", "24_cut.snt", "Player", 0, false);
//PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
//}

//void Loaded1(string &in asTimer)
//{
//SetPlayerJumpDisabled(false);
//FadeIn(2);
//PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
//SetPlayerMoveSpeedMul(1);
//}


void Flashback1(string &in asParent, string &in asChild, int alState)
{
StartEffectFlash(1, 0.9, 4);
FadeImageTrailTo(6, 3);
PlayMusic("Flashback1",true,1,0,0,false);
FadeRadialBlurTo(0.3, 3);
SetPlayerMoveSpeedMul(0.5);
SetPlayerJumpDisabled(true);
MovePlayerForward(10);
AddTimer("Timer1", 8, "SetMessage1");
}

void SetMessage1(string &in asTimer)
{
SetMessage("Messages", "Message1", 8);
}

void Fadein1(string &in asParent, string &in asChild, int alState)
{
FadeIn(1);
FadeImageTrailTo(2, 1);
}

void Fade1(string &in asParent, string &in asChild, int alState)
{
FadeOut(1);
}

void FlyingBarrel(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("barrel01_2", 0, 0, -20, "world");
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
}

void CabinateScare(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false);
SetEntityActive("servant_grunt_2", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_5", 0, "Idle");
}

void ActivateMonster1(string &in item)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "Idle");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "Idle");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "Idle");
}

void KnightScare(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false);
SetEntityActive("armour_nice_complete_14", true);
SetEntityActive("armour_nice_complete_15", true);
SetEntityActive("armour_nice_complete_16", true);
SetEntityActive("armour_nice_complete_17", true);
SetEntityActive("armour_nice_complete_18", true);
SetEntityActive("armour_nice_complete_19", true);
SetEntityActive("armour_nice_complete_20", true);
SetEntityActive("armour_nice_complete_21", true);
SetEntityActive("armour_nice_complete_22", true);
SetEntityActive("armour_nice_complete_23", true);
}

void ScareFake(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
}

void GruntHallucination(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
ShowEnemyPlayerPosition("servant_grunt_1");
PlaySoundAtEntity("", "", "Player", 0, false);
PlayMusic("scream_scare",true,1,0,0,false);
}

void CloseDoorFunc(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_1", true, true);
SetSwingDoorLocked("castle_1", true, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false);
GiveSanityDamage(50.0f, true);
}

void CloseDoorFunc2(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_2", true, true);
SetSwingDoorLocked("Magical Apples", true, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "lurker_hit_wood1.snt", "Player", 0, false);
PlaySoundAtEntity("", "insanity_whisper.snt", "Player", 0, false);
PlaySoundAtEntity("", "insanity_baby_cry.snt", "Player", 0, false);
GiveSanityDamage(40.0f, true);
}

void KeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked("castle_1", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false);
RemoveItem("Key_1");
}

void KeyOnDoor1(string &in item, string &in door)
{
SetSwingDoorLocked("castle_2", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_2", 0, false);
RemoveItem("Key_2");
}

void OnEnter()
{


}

Special Custom Story for 2 special people!

[Image: LWFcAl]


(This post was last modified: 07-03-2012, 06:20 PM by Jagsrs28.)
07-03-2012, 06:19 PM
Find


Messages In This Thread
RE: World not loading correctly - by Cruzore - 07-02-2012, 03:32 PM
RE: World not loading correctly - by Jagsrs28 - 07-02-2012, 03:42 PM
RE: World not loading correctly - by Jagsrs28 - 07-02-2012, 04:06 PM
RE: World not loading correctly - by Cruzore - 07-02-2012, 04:16 PM
RE: World not loading correctly - by Jagsrs28 - 07-02-2012, 04:25 PM
RE: [STILL NEED HELP] World not loading correctly - by Jagsrs28 - 07-03-2012, 06:19 PM



Users browsing this thread: 1 Guest(s)