Silgrad Tower from the Ashes
Noob Question - Printable Version

+- Silgrad Tower from the Ashes (https://www.silgradmodding.net/forum)
+-- Forum: Discussions for Silgrad Tower TES IV (Oblivion) & TES III (Morrowind) (https://www.silgradmodding.net/forum/Forum-Discussions-for-Silgrad-Tower-TES-IV-Oblivion-TES-III-Morrowind)
+--- Forum: General Discussions TESIV (https://www.silgradmodding.net/forum/Forum-General-Discussions-TESIV)
+---- Forum: General ES Modding (https://www.silgradmodding.net/forum/Forum-General-ES-Modding)
+---- Thread: Noob Question (/Thread-Noob-Question)



Noob Question - t3h_pwn3r_ii - 07-24-2011

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


RE: Noob Question - Koniption - 07-24-2011

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