Difference between revisions of "SayTo"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Maturin
 
imported>ZuTheSkunk
(Can be used on player.)
 
(5 intermediate revisions by 5 users not shown)
Line 27: Line 27:
  end
  end


==Notes==
* This function can be used on player to force him into saying something.




==See Also==  
==See Also==  
[[Say]]  
*[[Say]]
*[[StartConversation]]


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Actor Functions]]
[[Category: Actor Functions (CS 1.0)]]
[[Category: Dialogue Functions]]
[[Category: Dialogue Functions]]
[[Category: Dialogue Functions (CS 1.0)]]
<!-- Begin Search Terms
Say
To
End Search Terms -->

Latest revision as of 08:34, 12 July 2010

Syntax:

SayTo TargetActor, TopicID, ForceSubtitleFlag (optional)

Example:

SayTo Joe SecretTopic 
SayTo player SecretTopic 1

Use the function to have an NPC speak a single dialogue item to the player or another NPC. The speaking NPC will head track or turn towards the target, if his current package allows it, but will not wait to close the distance (so you will want to make sure to call this at an appropriate speaking distance).


Returns the time in seconds that the NPC will take to finish speaking, which can be useful for timing followups in scripts.


If ForceSubtitleFlag = 1, the subtitles will be displayed regardless of distance between the speaker and the player.


Example Script[edit | edit source]

begin gamemode
	if timer > 0 
		set timer to timer - getsecondspassed
	elseif talk == 1
		set lastStage to CharacterGen.tauntStage
		set timer to SayTo player, CharGenTaunt2 1
		if getstage characterGen == 9
			set characterGen.convTimer to timer - .5
		endif
	endif
end

Notes[edit | edit source]

  • This function can be used on player to force him into saying something.


See Also[edit | edit source]