Difference between revisions of "Talk:Topics Tab"

Jump to navigation Jump to search
618 bytes added ,  16:10, 30 May 2006
I think this'll do it
imported>Jeepcreep
imported>TheImperialDragon
(I think this'll do it)
Line 11: Line 11:
== How to auto-enter (quest) conversation ? ==
== How to auto-enter (quest) conversation ? ==
I've browsed the wiki and more or less have an idea of how to create NPCs with dialogue and stuff. Just how would I create one of those who automatically approaches me when I'm near enough and just starts talking to me ? Is this condition-driven or is there some flag ?? kind regards --[[User:Jeepcreep|Jeepcreep]] 16:30, 30 May 2006 (EDT)
I've browsed the wiki and more or less have an idea of how to create NPCs with dialogue and stuff. Just how would I create one of those who automatically approaches me when I'm near enough and just starts talking to me ? Is this condition-driven or is there some flag ?? kind regards --[[User:Jeepcreep|Jeepcreep]] 16:30, 30 May 2006 (EDT)
Try using [[GetDistance]] and [[StartConversation]].
It'd look something like this, I guess?
<blockquote>
:scriptname TalkToMe
:ref player
:short Talked
:Begin GameMode
::if Talked == 1  ; so it only does this once.
:::Return
::endif
:End
:Begin GameMode
::if GetDistance player > 70
:::Set Talked to 1
:::StartConversation player GREETING
::endif
:End
</blockquote>
Attach it to your NPC, and he should start a conversation when you approach him/her.
I haven't tested it, but I think it'll work.  I'm new to Oblivion scripting, and this is only the second I've made, so let me know how it works?

Navigation menu