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
Increase or Damage my Insanity script?
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#1
Increase or Damage my Insanity script?

I remember i found a tread got the sanity script, but sadly i forgot where i found it, i also forgot to bookmark it so please give me the scripts, sorry to bother, forgive me Smile.

One World To Another [DEMO] coming soon.
(This post was last modified: 03-14-2011, 03:45 AM by Raymond.)
03-09-2011, 10:02 AM
Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#2
RE: Increase of Damage my Insanity script?

You mean this?
void GiveSanityDamage(float afAmount, bool abUseEffect);

Also, if you want to find a script like that. Here's a list of all the scripts in Amnesia:
http://wiki.frictionalgames.com/hpl2/amn..._functions
03-09-2011, 12:32 PM
Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#3
RE: Increase of Damage my Insanity script?

////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_3" , "Collide_Area2" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_4" , "Collide_Area3" , true , 1);
AddEntityCollideCallback("Player", "AreaPlayerTeleport", "CollidePlayerTeleport", true, 1);
AddEntityCollideCallback("Player", "InsanityArea_2", "insanity1", true, 1);
}

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
}

void Collide_Area1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("slime_anim_wall_1" , true);
}

void PickedUpNote(string &in entity)
{
SetEntityActive("servant_grunt_2", true);
SetEntityActive("slime_pile_large_2", true);
SetEntityActive("slime_pile_large_1", true);
SetEntityActive("SlimeDamageArea_1", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_21", 10, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_35", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_36", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_38", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_37", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_40", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_39", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_41", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_42", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_43", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_44", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_45", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_47", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_46", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_48", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_49", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_50", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_90", 0, "");
}

void insanity1(string &in entity)
{
StartScreenShake(0.5f, 0.01f, 0.1f, 0.02f);
GiveSanityDamage(10.0f, true);
PlayMusic("insanity_baby_cry1.ogg", false, 1.0f, 0.5f, 10, false);
}

void PickedUpKey(string &in entity)
{
SetEntityActive("waterlurker_1", true);
}

Is there something wrong? The insanity script won't work Sad.

One World To Another [DEMO] coming soon.
03-12-2011, 08:31 AM
Find
Havi Offline
Junior Member

Posts: 5
Threads: 0
Joined: Mar 2011
Reputation: 0
#4
RE: Increase of Damage my Insanity script?

(03-12-2011, 08:31 AM)Raymond Wrote: ////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_3" , "Collide_Area2" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_4" , "Collide_Area3" , true , 1);
AddEntityCollideCallback("Player", "AreaPlayerTeleport", "CollidePlayerTeleport", true, 1);
AddEntityCollideCallback("Player", "InsanityArea_2", "insanity1", true, 1);
}

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
}

void Collide_Area1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("slime_anim_wall_1" , true);
}

void PickedUpNote(string &in entity)
{
SetEntityActive("servant_grunt_2", true);
SetEntityActive("slime_pile_large_2", true);
SetEntityActive("slime_pile_large_1", true);
SetEntityActive("SlimeDamageArea_1", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_21", 10, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_35", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_36", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_38", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_37", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_40", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_39", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_41", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_42", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_43", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_44", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_45", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_47", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_46", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_48", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_49", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_50", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_90", 0, "");
}

void insanity1(string &in entity)
{
StartScreenShake(0.5f, 0.01f, 0.1f, 0.02f);
GiveSanityDamage(10.0f, true);
PlayMusic("insanity_baby_cry1.ogg", false, 1.0f, 0.5f, 10, false);
}

void PickedUpKey(string &in entity)
{
SetEntityActive("waterlurker_1", true);
}

Is there something wrong? The insanity script won't work Sad.

"void insanity1(string &in entity)" is wrong...

it has to be "void insanity1(string &in asParent , string &in asChild , int alState)" i think.. Smile
03-12-2011, 11:17 AM
Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#5
RE: Increase of Damage my Insanity script?

Ok, thanks Big Grin.

One World To Another [DEMO] coming soon.
03-13-2011, 06:27 AM
Find




Users browsing this thread: 1 Guest(s)