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
Set NPC
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#1
Set NPC

Hi, I edited a waterlurker to following player without killing him. It's working fine, but player gives a insanity.
So I change waterlurker to NPC and write a script to follow player, but it doesnt work.


Can you help me please?
11-23-2012, 01:16 PM
Find
Hardarm Offline
Posting Freak

Posts: 891
Threads: 39
Joined: Apr 2011
Reputation: 43
#2
RE: Set NPC

(11-23-2012, 01:16 PM)good871 Wrote: Hi, I edited a waterlurker to following player without killing him. It's working fine, but player gives a insanity.
So I change waterlurker to NPC and write a script to follow player, but it doesnt work.


Can you help me please?
First, don't ever change an enemy with "NPC", just stick it like before.
I think you can use this: "void SetSanityDrainDisabled(bool abX);"

listen to boards of canada
11-23-2012, 01:42 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: Set NPC

Hardarm, that only works for darkness, not enemies. Enemies are hard coded with sanity drain.

It's not possible to stop the insanity if you want the monster to follow. You could script the splashes and sounds to a path, but it can't follow the player. I think you're going to have to stick with the sanity drain =\
11-23-2012, 05:37 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Set NPC

You need a full conversion to remove the sanity loss from monsters, but the screen effects will still remain.

Tutorials: From Noob to Pro
(This post was last modified: 11-23-2012, 07:14 PM by Your Computer.)
11-23-2012, 07:14 PM
Website Find
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#5
RE: Set NPC

so i have to create a new entity, right?
11-24-2012, 01:10 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Set NPC

(11-24-2012, 01:10 PM)good871 Wrote: so i have to create a new entity, right?
Ehem. Let's see...

NPC won't work, you will have to deal with the enemy entity. Don't change that, because if you remain, in the main Amnesia there wasn't any direct character. I mean, every character is in it's places, they don't really change their position, while the enemies do. So, an enemy class is what you have to do.

I don't really understand about the sanity fading, but making a full conversion and changing the waterlurker code should work (but I'm pretty sure that it will be hard as hell to implement).

Sorry but this is all I can do for you by the moment Sad

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-24-2012, 02:01 PM
Find
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#7
RE: Set NPC

i read all code for waterluker, but there is any mention about (in)sanity. now i think its impossible edit this charakter.

Any idea how make a new character into game, who will be following player?
11-28-2012, 02:14 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: Set NPC

Er... I think it will be much more complicated than you think. Anyways:

-Change the enemy to enemy-grunt
-Make it invisible
-Then, edit it a way that it stops right at centimeters to the player (I know someone did it)
-Tell the enemy "ShowEnemyPlayerPosition"

I think this could work. It will be complicated, though.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-28-2012, 02:21 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#9
RE: Set NPC

Sorry for bumping this, but you guys gave the poor guy to do A BIG WORK, which (assuming) is hard for him to do.
To do this, do these steps;
1. Add Script Areas at the player's path.
2. Script it so that at each script area, a splash is seen and heard.

It is really that simple.

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-19-2013, 12:36 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#10
RE: Set NPC

(02-19-2013, 12:36 PM)JustAnotherPlayer Wrote: Sorry for bumping this, but you guys gave the poor guy to do A BIG WORK, which (assuming) is hard for him to do.
To do this, do these steps;
1. Add Script Areas at the player's path.
2. Script it so that at each script area, a splash is seen and heard.

It is really that simple.

Actually gotta agree with the other guys. If you make a BIG area, you'll have to script EVERY single step where the player goes. It's much more harder to do that. Besides the script will be too many.

[Image: the-cabin-in-the-woods-masked-people.jpg]
02-19-2013, 01:39 PM
Find




Users browsing this thread: 3 Guest(s)