Jump to content

Automatic Greetings


ravenlark

Recommended Posts

Hey all. I've been having some trouble, and joined here in hopes of finding some help and acquiring some general knowledge.

 

Anyway, I've got an NPC standing at the back of a few guards, and I want her to talk to me as soon as I get near her. I've been looking at the other dialogues such as the guards "arrest" greetings, and I can't seem to find out how its done.

 

Any idea how? :huh:

Link to comment
Share on other sites

I am not that good with the cs but, check out the escort greetings. They are set up so that once you enter the area you were supposed to escort that NPC to then they autamaticcally talk to you with a thankyou message.

 

If you set it up so that the area was a radius around your NPC then set it up like the thankyou messages for escorts it might work.

 

 

sorry, as i have said: I know nearly nothing about the CS, my suggestion was just a logical guess. let me know if I helped.

 

 

-MDR

Link to comment
Share on other sites

Simple. First attatch the following script to your new NPC:

 

Begin "#mws_npc_lin_may_chen"

 

; Because I can, damnit!

 

Short PCisClose

Short DoOnce

 

If ( GetDistance Player <= XXX )

If ( DoOnce == 0 )

Set PCisClose to 1

Set DoOnce to 1

Forcegreeting

EndIf

EndIf

 

End

 

...Where XXX is the distance where the NPC will start talking. After that, go into Dialogue and create a new Greeting 0 entry with an ID condition fitting your new NPC and a Local condition that checks for the variable PCisClose being greater than 0. If you want to make the NPC start talking to the player each time he gets close, look at the scripts attatched to the sleepers.

Link to comment
Share on other sites

  • 2 weeks later...

Nope, my version has the same concept, but has recieved quite a shot in the leg -- the dialog only shows once and only has one state, meaning that, as long as the PC is close enough and the script hasn't delivered its payload yet, there is only one possible outcome.

 

Sorry for the late reply, been looking for a DSL provider. This has proven to be a very trying task, as I'm in the middle of swamp country. Ferchrissakes, the hospital is sinking!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...