Frictional Games Forum (read-only)
[CHAOS] I NEED HELP! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [CHAOS] I NEED HELP! (/thread-20360.html)

Pages: 1 2


I NEED HELP! - PutraenusAlivius - 02-17-2013

Hey, guys. So i got a lot of sequences in my CS, A Forgotten Memory. But, i don't have the knowledge to do these things. Here they are;

1. I want area when i collide with it, i cant move (the Block box), but i want it to be interactable and when i do it, my health gets lowered and a text shows up.

2. I want an piano to play whenever i didn't look at it, and it suddenly stopped when i do, with a dust, as if someone was there.

3. In the original game, (in the Wine Cellar, to be exact.) a door was banging by it self and stops when you interact with it. How do i do this?

4. How do i roll the credits?

5. How do i destroy an object using an item?

More questions will come. But so far, those are the only problems.


RE: I NEED HELP! - No Author - 02-17-2013

1. First you make a script area and an unactive block box. After that put a script area where you want to interact with. At the interact area you need to go to the second tab and check the interact thingy and fill the interact callback box (test1 for example. This for the text if you interact with it). For the lower health thingy, I don't remember the script. Ask someone else.

2. This is a pretty hard script. And I don't know a single thing about this. You can try by putting 2 or 3 script areas and then you script it.

3. Better change the door to the original cellar door. Make the Y : 0.025 - 0.075 . Oh yeah, make the door a little bit to the front. To make it doesn't do auto close if you know what I mean.

EDIT : Forget what I said about no. 3. I thought you typed hanging. Lol. Follow i3670 instead.


RE: I NEED HELP! - i3670 - 02-17-2013

2. LookAtCallback

SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

void MyFunc(string &in asEntity, int alState)
alState: 1 = looking, -1 = not looking

3. RemoveTimer, AddTimer and InteractCallback



http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


RE: I NEED HELP! - PutraenusAlivius - 02-17-2013

(02-17-2013, 12:48 PM)i3670 Wrote: 2. LookAtCallback

SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

void MyFunc(string &in asEntity, int alState)
alState: 1 = looking, -1 = not looking

3. RemoveTimer, AddTimer and InteractCallback



http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
Thanks. But i don't understand any of these.


RE: I NEED HELP! - 343 - 02-17-2013

God damn, use a proper thread title.

Also like i3670 linked:

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


RE: I NEED HELP! - No Author - 02-18-2013

For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.


RE: I NEED HELP! - PutraenusAlivius - 02-18-2013

(02-18-2013, 12:17 AM)No Author Wrote: For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.
That's just gonna clutter the forums.


RE: I NEED HELP! - No Author - 02-18-2013

(02-18-2013, 09:58 AM)JustAnotherPlayer Wrote:
(02-18-2013, 12:17 AM)No Author Wrote: For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.
That's just gonna clutter the forums.

You mean like spamming on the forum ?


RE: I NEED HELP! - PutraenusAlivius - 02-18-2013

(02-18-2013, 10:16 AM)No Author Wrote:
(02-18-2013, 09:58 AM)JustAnotherPlayer Wrote:
(02-18-2013, 12:17 AM)No Author Wrote: For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.
That's just gonna clutter the forums.

You mean like spamming on the forum ?
Yep.


RE: I NEED HELP! - Adrianis - 02-18-2013

For 3, you'll want to use AddPropForce to push the door, but have the function repeat using a timer, and have the force switch sides so it is pushing the door closed, then open, closed again etc. You could just look in the wine cellar scripts to see how FG did it, of course.

Perhaps something like this...

void OnEnter()
{
SetSwingDoorDisableAutoClose("doorname", true); // to make sure the door does not close
AddTimer("DoorBangOpen", 2, "DoorBang");
}

void DoorBang(string &in strTimer)
{
if (strTimer == "DoorBangOpen") {
AddPropForce("doorname", 0, 0, 500, "local"); // you'll need to play around with the force value / direction
AddTimer("DoorBangClose", 1, "DoorBang");
}
else if (strTimer == "DoorBangClose") {
AddPropForce("doorname", 0, 0, -1000, "local"); // you'll need to play around with the force value / direction, note reversal of direction from above
AddTimer("DoorBangOpen", 2, "DoorBang");
}
}

For point 2, you want the piano to be playing, but to stop playing when the player looks at it. Then you want the piano to start playing again when the player looks away? and stop again when they look back? etc etc...