Difference between revisions of "Talking Creatures?"

1,383 bytes added ,  17:09, 8 June 2006
script
imported>TheImperialDragon
imported>TheImperialDragon
(script)
Line 237: Line 237:


:Just tested, first two tries didn't work too well.  I'll try again, but change a few things, just to see if this'll work. [[User:TheImperialDragon|The Imperial Dragon]] 15:57, 8 June 2006 (EDT)
:Just tested, first two tries didn't work too well.  I'll try again, but change a few things, just to see if this'll work. [[User:TheImperialDragon|The Imperial Dragon]] 15:57, 8 June 2006 (EDT)
Here's my script.  It works for the most part, but the Angle Set thing isn't working.  Somehow, I think it's something really obvious...  I put a ; in front of those parts.
<pre>
scn TalkingCreature
short Hurt
short Order
float PCAngle
Begin OnMurder
set Hurt to 1
End
Begin Gamemode
If Hurt == 1
Return
endif
If GetInSameCell player == 0
Return
elseif GetInSameCell player == 1
Talker.SetActorAlpha 0.0
; set PCAngle to ( GetAngle Z player )
; If PCAngle >= 180
; Set PCAngle to ( PCAngle - 180 )
; elseif PCAngle < 180
; Set PCAngle to ( PCAngle + 180 )
; endif
if Order == 1
GoblinPassive.MoveToMarker Talkertalkshere
Talker.MoveToMarker Talkertalkshere
; GoblinPassive.SetAngle Z, PCAngle
endif
If Order == 2
Talkertalkshere.MoveToMarker Notalking
set Order to 0
endif
endif
End
Begin OnHit
set Hurt to 1
End
;set order to 0 in dialogue
Begin OnActivate
; GoblinPassive.SetAngle Z, PCAngle
Talkertalkshere.MoveTo GoblinPassive
set Order to 1
If Order == 1
; set Order to 2 - *do this in dialogue instead*
GoblinPassive.MoveToMarker Talkertalkshere
Talker.MoveToMarker Talkertalkshere
Talker.StartConversation player GREETING
endif
End
</pre>
I don't know, perhaps it is something wrong I did with the variable?  If it is, can someone fix it? [[User:TheImperialDragon|The Imperial Dragon]] 17:09, 8 June 2006 (EDT)
[[Category:Questions]]
[[Category:Questions]]