Difference between revisions of "Talking Creatures?"

1,362 bytes added ,  23:00, 30 May 2006
results
imported>TheImperialDragon
imported>TheImperialDragon
(results)
Line 71: Line 71:
:I couldn't agree more with DragoonWraith, let's stick to three levels of indent, one for each of us, unless someone other than us thinks of an idea of course, or we'll end up with ultra-thin paragraphs.  Anyway, I already tried to make an Orc-Goblin race, but what I came up with didn't look all too good.  I don't know how to make Orc ears larger than they are, or how to get the orc to lean forward all the time like a Goblin.  I will try to work a little more with the invisible NPC and OnActivate methods, and we'll see how this works... [[User:TheImperialDragon|TheImperialDragon]] 16:15, 30 May 2006 (EDT)
:I couldn't agree more with DragoonWraith, let's stick to three levels of indent, one for each of us, unless someone other than us thinks of an idea of course, or we'll end up with ultra-thin paragraphs.  Anyway, I already tried to make an Orc-Goblin race, but what I came up with didn't look all too good.  I don't know how to make Orc ears larger than they are, or how to get the orc to lean forward all the time like a Goblin.  I will try to work a little more with the invisible NPC and OnActivate methods, and we'll see how this works... [[User:TheImperialDragon|TheImperialDragon]] 16:15, 30 May 2006 (EDT)


:OK, I finally got this to do something, but there are several problems.  Where to start?  Here's my script:
<blockquote>
scn TalkingCreature
:short Order
:;talker is my NPC, this script is attached to a goblin
:Begin OnActivate
::StartConversation Player GREETING ;We already know this doesn't work
::Message "I am at 2048, 2048"
::Talker.MoveToMarker TalkerTalksHere ;X marker, but NPC ends up outside goblin.
::Set Order to 1
::if Order == 1
:::Talker.StartConversation player GREETING ;This works
:::Set Order to 0
::Endif
:End
</blockquote>
:Also, when a dialogue begins, all animations other than the speaking actor freeze.  To get the goblin always looking at the player, I was considering using the [[look]] command when the player comes within 512 units.  I increased the 3D Scale size of the goblin so that his head is somewhat at the same level as the player.  Unfortunately, because my NPC ends up outside the goblin (whose centre is at the middle of the X marker) it's hard to get the camera to zoom in on the goblin's face.  Maybe, if the goblin doesn't already have a GREETING topic, you should make one then try and see if it works?  I haven't really had a good look at the Dialogue Functions yet, so I wouldn't know what to do, I only have a vague idea of how it works. [[User:TheImperialDragon|TheImperialDragon]] 23:00, 30 May 2006 (EDT)


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