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
[SOLVED]Strange script problem
ide Offline
Junior Member

Posts: 20
Threads: 3
Joined: Oct 2010
Reputation: 0
#8
RE: Strange script problem

void OnStart()
{
AddUseItemCallback("", "roomkey_1", "mansion_1", "UnlockDoor", true);
AddUseItemCallback("", "storagekey", "mansion_7", "UnlockDoor", true);
AddUseItemCallback("", "key_torture_chamber_1", "mansion_6", "UnlockDoor", true);
AddEntityCollideCallback("Player", "StepsArea_1", "sounds1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "sounds3", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_1", "sounds2", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_6", "sounds5", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_7", "sounds6", true, 1);
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_4", "enemydisappear", true, 1);
SetEntityPlayerInteractCallback("mansion_11", "doorgrunt", true);
SetPlayerLampOil(20);
if(ScriptDebugOn())
{
GiveItemFromFile("", "lantern");
for(int i;i<10;i++)
GiveItemFromFile("","tinderbox");
}
}
void UnlockDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", asEntity, 1, false);
RemoveItem(asItem);
}
void sounds1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_steps_big", "ScriptArea_3", 0, false);
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
}
void sounds2(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick_floor_17", false, false);
SetLampLit("candlestick_floor_16", false, false);
SetMessage("Hints", "blockhint", 5);
GiveSanityDamage(10, true);
PlaySoundAtEntity("", "notice_long", "ScriptArea_2", 0, false);
SetSwingDoorClosed("mansion_3", true, true);
SetEntityPlayerInteractCallback("mansion_4", "doorspook", true);
}
void sounds3(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "manhorror");
AddTimer("", 2, "gruntslash");
}
void kaappi(string &in entity){
PlaySoundAtEntity("","21_screams", "cabinet_simple_1",0,false);
GiveSanityDamage(10, true);
}
void sounds5(string &in asParent, string &in asChild, int alState){
PlaySoundAtEntity("","15_the_big_scream", "ScriptArea_2", 0, false);
AddQuest("startquest", "startquest");
}
void TurnLampOff(string &in asParent, string &in asChild, int alState){

}
void sounds6(string &in asParent, string &in asChild, int alState){
PlaySoundAtEntity("","scare_human_noices","ScriptArea_1",0,false);
}
void OfficeKeyPicked(){
CompleteQuest("startquest", "end_startquest");
}
void manhorror(string &in asTimer){
PlaySoundAtEntity("","15_man_hunted", "ScriptArea_2", 0, false);
}
void gruntslash(string &in asTimer){
PlaySoundAtEntity("","amb_idle", "ScriptArea_2", 0, false);
PlaySoundAtEntity("","attack_claw_hit", "ScriptArea_2", 0, false);
}
void enemydisappear(string & asEntity){
SetEntityActive("servant_grunt_1", false);
AddDebugMessage("enemy disapperared", false);
}
void doorspook(string &in entity){
PlaySoundAtEntity("", "scare_steps_big", "ScriptArea_9", 0, false);
}
void doorgrunt(string &in entity){
SetEntityActive("1doorgrunt", true);
AddEnemyPatrolNode("1doorgrunt", "PathNodeArea_7", 5, "");
AddEnemyPatrolNode("1doorgrunt", "PathNodeArea_24", 0, "");
}

In case you wanted to know the bugged sound is 15_the_big_scream
10-13-2010, 04:05 PM
Find


Messages In This Thread
[SOLVED]Strange script problem - by ide - 10-13-2010, 02:22 PM
RE: Strange script problem - by Frontcannon - 10-13-2010, 02:26 PM
RE: Strange script problem - by ide - 10-13-2010, 02:44 PM
RE: Strange script problem - by Frontcannon - 10-13-2010, 03:56 PM
RE: Strange script problem - by Entih - 10-13-2010, 03:17 PM
RE: Strange script problem - by ide - 10-13-2010, 03:57 PM
RE: Strange script problem - by Entih - 10-13-2010, 04:02 PM
RE: Strange script problem - by ide - 10-13-2010, 04:05 PM
RE: Strange script problem - by SLi78 - 10-13-2010, 04:42 PM
RE: Strange script problem - by Entih - 10-13-2010, 04:30 PM
RE: Strange script problem - by ide - 10-13-2010, 05:43 PM
RE: Strange script problem - by SLi78 - 10-13-2010, 06:04 PM
RE: Strange script problem - by ide - 10-13-2010, 06:24 PM



Users browsing this thread: 1 Guest(s)