Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Noob Question
07-24-2011, 02:23 AM,
#1
Noob Question
Hi all;

Just had a mental blank.
If i want my custom NPC to say aq formal greeting the first time the PC speaks to him, and then never say it again, what conditions do I put? I want an introduction, then I want a generic, Hello, good friend.

if you could help, that would be awesome.

PWN
If 'if's' and 'but's' were candy and nuts we'd all have a Merry Christmas
Reply
07-24-2011, 08:30 PM,
#2
RE: Noob Question
Quote:Originally posted by t3h_pwn3r_ii
Hi all;

Just had a mental blank.
If I want my custom NPC to say aq formal greeting the first time the PC speaks to him, and then never say it again, what conditions do I put? I want an introduction, then I want a generic, Hello, good friend.

if you could help, that would be awesome.

PWN

Yikes, a Dialogue question.... :pop: (not my specialty).

Doesn't the Dialogue section in CS have an area to enter scripting stuff in, like for "conditions"?

I think you need to make a Quest script attached to a quest, like this (or include somehow in a quest script you already have started):

scn NPCTalkedToOnceQuestScript ;; attached to "NPCTalkedToOnce" quest

short state

(yes you can just include variables in this script and nothing else)

Then, in the Dialogue "Condition" field, write the following:

GetQuestVariable NPCTalkedToOnce,state == 0

In the Dialogue "Result Script" field, write this:

set NPCTalkedToOnce.state to 1

------------

See if that works.

Koniption
Yeah, don't let those little turds get you down. Dingleberries stick for a while, but eventually they fall off. Cool
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)