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
I need some Help. HARDCORE SCRIPT :P
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
I need some Help. HARDCORE SCRIPT :P

Hey I was wondering. How can I make the same effect as the one in The Dark Descent. When you walk into the room, and BOOM! You get pitch black and it's water. Then the water lurkers comes to poke you.

You know, you walk two steps and then BAM! It happens.

If Frictional themselves could provide me with the same script that would be awesome.

I really... REALLY need this. REALLY! It would complete my work, well I am still making the map, but it would make it cooler if I had that effect. I am going to have it go BOOM! Then the Entire room Changes from bright and friendly, to dark and sinister.

Hope I can get help with this!

Angerpull Angel
07-19-2011, 01:49 AM
Find
Randomeaninglessword Offline
Junior Member

Posts: 4
Threads: 1
Joined: Jul 2011
Reputation: 0
#2
RE: I need some Help. HARDCORE SCRIPT :P

You can always open the .hps folder for the level in the game to use the code or base your code around their code. It's in Amnesia - The Dark Descent, redist, maps, main, ch01, and then I believe it's 07_archives_cellar.hps.

Signature!
(This post was last modified: 07-19-2011, 01:54 AM by Randomeaninglessword.)
07-19-2011, 01:53 AM
Website Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#3
RE: I need some Help. HARDCORE SCRIPT :P

That was a teleport deal. Take two identical rooms, one dry and water-lurker-free, one dark and water-filled, and when the player, in the "clean" room, hits an Area, it fades out quick, teleports the player, plays a splash effect, spawn the lurker, etc.

07-19-2011, 01:53 AM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#4
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 01:53 AM)Kurton Wrote: That was a teleport deal. Take two identical rooms, one dry and water-lurker-free, one dark and water-filled, and when the player, in the "clean" room, hits an Area, it fades out quick, teleports the player, plays a splash effect, spawn the lurker, etc.

I see. But how is this performed?

07-19-2011, 01:58 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#5
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 01:49 AM)Angerpull Wrote: If Frictional themselves could provide me with the same script that would be awesome.

They already provided it with the official level files. It's up to you to open the files and check the script.

07-19-2011, 02:08 AM
Website Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#6
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 02:08 AM)Tanshaydar Wrote:
(07-19-2011, 01:49 AM)Angerpull Wrote: If Frictional themselves could provide me with the same script that would be awesome.

They already provided it with the official level files. It's up to you to open the files and check the script.

I just did... Made no effing sense in my eyes. I usually see the

AddCollideCallBack whatever and a OnStart function at the top. You guys don't have it. It's a script here, and the function is... Somewhere!

I tried copying the Function of the script over to mine and set a point where it would be activated, no luck my duck I still got plucked...... the game didn't want to, and nothing happened.

If a working script could be provided HERE without me going on a adventure through your script files, that would be awesome.

Well I highly doubt anyone will do this and take time for it, but I'll wait... if I get no help, then I just scrap my map and throw it away.

07-19-2011, 02:18 AM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#7
RE: I need some Help. HARDCORE SCRIPT :P

void OnStart()
{
AddEntityCollideCallback("ParentName", "ChildName", "FunctionName", true, 1);
}

void FunctionName(string &in asParent, string &in asChild, int alState)
{
FadeOut(0)
AddTimer("", 1.0, "TimerName")
}

void TimerName(string &in asTimer)
{
TeleportPlayer("StartPosName");
}

This came out of the blue so I never tried it.

[Image: 44917299.jpg]Dubstep <3
07-19-2011, 02:36 AM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#8
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 02:36 AM)xtron Wrote:
void OnStart()
{
AddEntityCollideCallback("ParentName", "ChildName", "FunctionName", true, 1);
}

void FunctionName(string &in asParent, string &in asChild, int alState)
{
FadeOut(0)
AddTimer("", 1.0, "TimerName")
}

void TimerName(string &in asTimer)
{
TeleportPlayer("StartPosName");
}

This came out of the blue so I never tried it.

I see what you're trying to do. But I want the entire booming effect and all of that. Idk how to do it, and the Frictional Games HPS files is like a maze... made out of mirrors... in Harry Potter.
07-19-2011, 02:42 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#9
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 02:18 AM)Angerpull Wrote: I just did... Made no effing sense in my eyes. I usually see the

AddCollideCallBack whatever and a OnStart function at the top. You guys don't have it. It's a script here, and the function is... Somewhere!

I tried copying the Function of the script over to mine and set a point where it would be activated, no luck my duck I still got plucked...... the game didn't want to, and nothing happened.

If a working script could be provided HERE without me going on a adventure through your script files, that would be awesome.

Well I highly doubt anyone will do this and take time for it, but I'll wait... if I get no help, then I just scrap my map and throw it away.

If you know how to use a Collide Callback, then you can search for the function's name since it's already stated in the Callback function. Open the map, you can search for area name. It's really easy, just takes a little clicking time.

And instead of waiting and wanting people to write code for you, trying to understand the script will help you in a long term.

PS. They are not my script files, I'm not a Frictional Games employee.

07-19-2011, 02:46 AM
Website Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#10
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 02:46 AM)Tanshaydar Wrote:
(07-19-2011, 02:18 AM)Angerpull Wrote: I just did... Made no effing sense in my eyes. I usually see the

AddCollideCallBack whatever and a OnStart function at the top. You guys don't have it. It's a script here, and the function is... Somewhere!

I tried copying the Function of the script over to mine and set a point where it would be activated, no luck my duck I still got plucked...... the game didn't want to, and nothing happened.

If a working script could be provided HERE without me going on a adventure through your script files, that would be awesome.

Well I highly doubt anyone will do this and take time for it, but I'll wait... if I get no help, then I just scrap my map and throw it away.

If you know how to use a Collide Callback, then you can search for the function's name since it's already stated in the Callback function. Open the map, you can search for area name. It's really easy, just takes a little clicking time.

And instead of waiting and wanting people to write code for you, trying to understand the script will help you in a long term.

PS. They are not my script files, I'm not a Frictional Games employee.

Okay I found it.

Spoiler below!

OnStart blah blah
{
AddEntityCollideCallback("Player","TeleportToDarkSideArea", "CollideTeleportToDarkSide", true, 0);
}


void CollideTeleportToDarkSide(string &in asParent, string &in asChild, int alState)
{
FadeOut(0.3);

AddTimer("scare", 0.3f, "TimerPlayerReact");
AddTimer("breath", 2.0f, "TimerPlayerReact");
AddTimer("breathl", 4.0f, "TimerPlayerReact");
AddTimer("breathl", 6.0f, "TimerPlayerReact");

AddTimer("TeleportHowl", 0.5f, "TimerTeleportHowl");
AddTimer("TeleportDone", 3.5f, "TimerTelportDone");

PlaySoundAtEntity("stomp","scare_wall_stomp","Player", 0, false);
PlaySoundAtEntity("darkamb","07_amb_breath","Player", 5, true);
PlaySoundAtEntity("wateramb", "ambience_water_no3d.snt", "sound_idle_1", 5, true);

FadePlayerFOVMulTo(4.0f, 4.0f);
SetRadialBlurStartDist(0.1f);
FadeRadialBlurTo(1.0f, 5.0f);

StartEffectFlash(0.2, 0.1,0.3);

FadeGlobalSoundVolume(0, 0.3);
StopMusic(0.3f, 0);
StartScreenShake(0.1, 4.7, 0.05, 0.5);

FadePlayerFOVMulTo(0.5, 3);
}


So what do I do to remove the teleport? I am tired, and can't edit worth oklahoma.
07-19-2011, 03:03 AM
Find




Users browsing this thread: 3 Guest(s)