A question on NPCs

Does anyone know how the on "Player contact" field of an NPC works? Is it when the player hits the NPC (or talks a neutral NPC)? In that case, does it trigger if the player misses? Or is bases on collision spheres?

P.S. The reason I'm asking this is that I'm starting to get into detailed pre-game production. 🙂

------------------
Cha0s
(url="http://"http://www.world-of-cha0s.hostrocket.com")The Homepage of Cha0s(/url)

It triggered when the collision spheres of the player and NPC meet. Or the player can hit X near the NPC to do the same thing.

Based on that, if the player misses the NPC it will not trigger the event.

In GOE I have a NPC run up to the player. If you avoid it, the NPC will not be able to give the player a message.

Hope this helps...

------------------
Magnum gloriam Efeionae est!
The forest is calling,how
will you answer? (url="http://"http://www.goe.vze.com")www.goe.vze.com(/url)

(This message has been edited by Efeion (edited 06-18-2004).)

Quote

Originally posted by Efeion:
**In GOE I have a NPC run up to the player. If you avoid it, the NPC will not be able to give the player a message.

**

Wouldn't it work if you set your event to occur at "Target proximity" and you set the target to be the player ?

------------------
Potomax

Quote

Originally posted by Potomax:
**
Wouldn't it work if you set your event to occur at "Target proximity" and you set the target to be the player ?

**

I'll bet the player cannot target himself with "Target proximity" without causing one of those crashes that some would like to blame on Coldstone.

------------------
My Doctor said I was having too much wine, women, and song - so I gave up singing because 2 out of 3 is not so bad.
The (url="http://"http://www.evula.org/rduck/")Kingdom of Garendall(/url) sectional map is easily printed from gif format pages.
(url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/damsels.sit?path=pog/addons&file;=damselsV1.1.sit")Damsels in Distress(/url) - A plugin for PoG. (url="http://"http://www.evula.org/rduck/RD-DEL.jpg")RD-DEL(/url)

Hmm... Maybe I did use target proximity...

I will have to check.

How could the player target himself? That option is only avalable for NPCs.

------------------
Magnum gloriam Efeionae est!
The forest is calling,how
will you answer? (url="http://"http://www.goe.vze.com")www.goe.vze.com(/url)

(This message has been edited by Efeion (edited 06-18-2004).)

Quote

Originally posted by Rubber Ducky:
**I'll bet the player cannot target himself with "Target proximity" without causing one of those crashes that some would like to blame on Coldstone.

**

I meant you set the NPC's AI to "Try to reach the player" and you set your dialog or whatever you want it to be to happen when the NPC reaches "Target proximity". I just don't know how close "proximity" is.

------------------
Potomax

Target proximity is one tile from the player.

------------------
Magnum gloriam Efeionae est!
The forest is calling,how
will you answer?
www.goe.vze.com

Then what I said should work (I think)

------------------
Potomax

It will work. Just becareful of objects blocking the NPC's path. I had some trouble with that myself.

------------------
Magnum gloriam Efeionae est!
The forest is calling,how
will you answer?
www.goe.vze.com

So... Player Contact is only triggered if the player attacks and hits the NPC or vice versa?

------------------
Cha0s
(url="http://"http://www.world-of-cha0s.hostrocket.com")The Homepage of Cha0s(/url)

To sum things up...

(Player contact) is only trigered by the player bumping into the NPCs collision sphere or hitting X next to a passive NPC. (I do not know if it works with an agressive NPC)

(Target reached) is trigered by the NPC reaching the tile next to what ever it is told to go to. (The Player, the tile "10" x "5" etc..)

(Target proximity) is trigered by a NPC reaching one tile away from the player or what ever it is told to go to. (Not the tile next to the player but the one before it. Player-Tile-NPC)

------------------
Magnum gloriam Efeionae est!
The forest is calling,how
will you answer? (url="http://"http://www.goe.vze.com")www.goe.vze.com(/url)

(This message has been edited by Efeion (edited 06-18-2004).)