Difference between revisions of "Talking Creatures?"

985 bytes added ,  18:40, 5 June 2006
The script...
imported>DragoonWraith
(Look should work...)
imported>TheImperialDragon
(The script...)
Line 114: Line 114:


::[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 17:50, 5 June 2006 (EDT): I would think [[Look]] would work, since Goblins do tend to look at things near them, just like NPCs do.
::[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 17:50, 5 June 2006 (EDT): I would think [[Look]] would work, since Goblins do tend to look at things near them, just like NPCs do.
:Well, my script didn't work first time around, but maybe because I had a SayTo command in there.  Here's my script (a work in progress) after taking SayTo out:
<Blockquote>
:scn TalkingCreature
:short Order
:Begin Gamemode ;''This is where I set up the [[Look]] and [[MoveToMarker]] functions, creating the effect of both characters being in the same place at the same time...''
::If GetInSameCell player == 0
:::Return ; ''Game runs faster I think...
::elseif GetInSameCell player == 1
:::Talker.MoveToMarker TalkerTalksHere ;''constantly moves NPC to marker''
:::Talker.SetActorAlpha 0.0
:::GoblinPassive.MoveToMarker Talkertalkshere ;''constantly moves goblin to marker''
:::if GetDistance Player <= 256 ;''Now the [[Look]] section''
::::set Order to 1
::::Look player
:::endif
:::if Order == 1
::::if GetDistance player > 256
:::::Stoplook
::::endif
:::endif
::endif
:End
:Begin OnActivate
::Talker.StartConversation player GREETING
:End
</blockquote>


[[Category:Questions]]
[[Category:Questions]]