-
Notifications
You must be signed in to change notification settings - Fork 0
Speech
(Formerly known as game.close_mouth_end_speech_time, which is now obsolete)
static int Speech.AnimationStopTimeMargin
Gets/sets the time margin at which the character talking animation should stop before before speech time ends. This property is specified in game loops and is set to 10 by default.
NOTE: This property only affects the animation if voice mode is disabled.
Example:
Speech.AnimationStopTimeMargin = 40;
will stop talking animation 40 game loops (1 second with the default game speed) before speech time ends.
See Also: Speech.DisplayPostTimeMs
static bool Speech.CustomPortraitPlacement
Enables/disables the custom speech portrait placement. When set to true the character portraits are positioned at screen coordinates defined by Speech.PortraitXOffset and Speech.PortraitY. When set to false the portraits will be automatically aligned again.
NOTE: This property has no effect if the Lucas-Arts speech style is used.
Compatibility: Supported by AGS 3.3.0 and later versions.
See Also: Speech.PortraitXOffset, Speech.PortraitY
static int Speech.DisplayPostTimeMs
Gets/sets the extra time the speech will stay on screen after its base time runs out. Commonly the time the speech lines and portrait stay on screen is calculated based on the text length - if the text mode is on, or voice clip length - if the voice mode is on. This property prolongs the time the speech text and/or portrait is displayed. This property does not interfere with speech skipping by key or mouse click: players will still be able to skip speech any time they want (if appropriate skip mode is enabled). This property is specified in milliseconds and is set to zero by default.
Compatibility: Supported by AGS 3.3.0 and later versions.
See Also: Speech.AnimationStopTimeMargin
(Formerly known as game.talkanim_speed, which is now obsolete)
static int Speech.GlobalSpeechAnimationDelay
Gets/sets global speech animation delay which affects every character in game. This property is specified in game loops and is set to 5 by default.
NOTE: This property is ignored if lip sync is enabled.
NOTE: The property is only used when the Speech.UseGlobalSpeechAnimationDelay is set to true. This property cannot be used if the global speech animation delay is disabled. In that case, the individual character's animation delay is used instead.
See Also: Character.SpeechAnimationDelay, Speech.UseGlobalSpeechAnimationDelay
static int Speech.PortraitXOffset
Gets/sets the character's speech portrait horizontal offset relative to screen side. The actual x coordinate of the portrait is calculated based on whether portrait is to be displayed at the left or right side of the screen. This property specifies the distance between the screen side and respected portrait's border.
**NOTE:**The property is only used when the Speech.CustomPortraitPlacement is set to true.
Compatibility: Supported by AGS 3.3.0 and later versions.
See Also: Speech.CustomPortraitPlacement, Speech.PortraitY
static int Speech.PortraitY
Gets/sets the character's speech portrait y coordinate on screen.
**NOTE:**The property is only used when the Speech.CustomPortraitPlacement is set to true.
Compatibility: Supported by AGS 3.3.0 and later versions.
See Also: Speech.CustomPortraitPlacement, Speech.PortraitXOffset
(Formerly known as game.skip_speech_specific_key, which is now obsolete)
static eKeyCode Speech.SkipKey
Gets/sets special key which can skip speech text. This makes all other keys ignored when speech is displayed on screen, unless eKeyNone is assigned, in which case any key can be used again.
**NOTE:**The specified key will only skip speech if the appropriate speech skip style is enabled.
Example:
Speech.SkipKey = eKeySpace;
will assign the "space" key to skip the speech.
See Also: Speech.SkipStyle
(Formerly known as SetSkipSpeech, which is now obsolete)
static SkipSpeechStyle Speech.SkipStyle
Gets/sets how the player can skip speech lines.
The accepted values are
eSkipKeyMouseTime player can skip text by clicking mouse or pressing key
eSkipKeyTime player can skip text by pressing key only, not by clicking mouse
eSkipTime player cannot skip text with mouse or keyboard
eSkipKeyMouse text does not time-out; player must click mouse or press key each time
eSkipMouseTime player can skip text by clicking mouse only, not by pressing key
eSkipKey text does not time-out; player can skip text by pressing key only
eSkipMouse text does not time-out; player can skip text by clicking mouse only
Example:
Speech.SkipStyle = eSkipTime;
will make the player unable to skip the text by pressing a mouse button or a key.
See Also: Game.IgnoreUserInputAfterTextTimeoutMs, Game.TextReadingSpeed, Game.Speech.SkipKey
(Formerly known as SetSpeechStyle, which is now obsolete)
static eSpeechStyle Speech.Style
Gets/sets the way in which speech text is displayed. This modifies the setting originally set in the editor. SpeechStyle can be:
eSpeechLucasarts
speech text over character's head
eSpeechSierra
close-up portrait of character
eSpeechSierraWithBackground
close-up portrait + background window for text
eSpeechFullScreen
QFG4-style full screen dialog pictures
Example:
Speech.Style = eSpeechSierra;
will change the speech style to a close up portrait of the character.
(Formerly known as game.speech_text_align, which is now obsolete)
static Alignment Speech.TextAlignment
Sets how text in LucasArts-style speech is aligned.
The accepted values are
eAlignLeft
eAlignCentre
eAlignRight
The default is eAlignCentre.
Example:
Speech.TextAlignment = eAlignRight;
will align the speech text at the right side.
static bool Speech.UseGlobalSpeechAnimationDelay
Gets/sets whether speech animation delay should use global setting, as opposed to individual character's setting. The actual global delay value is specified with Speech.GlobalSpeechAnimationDelay.
Example:
Speech.UseGlobalSpeechAnimationDelay = true;
will make the game use global speech animation delay.
Compatibility: Supported by AGS 3.3.0 and later versions.
See Also: Character.SpeechAnimationDelay, Speech.GlobalSpeechAnimationDelay
(Formerly known as SetVoiceMode, which is now obsolete)
static eVoiceMode Speech.VoiceMode
Gets/sets whether voice and/or text captions are used in the game.
Valid values for VoiceMode are:
eSpeechTextOnly no voice, text only
eSpeechVoiceAndText both voice and text
eSpeechVoiceOnly voice only, no text
The default is eSpeechVoiceAndText if in-game speech is enabled, and eSpeechTextOnly if it is not. Changing this setting changes the behavior of all Say and Display commands which have a speech file assigned to them.
WARNING: you should only ever use eSpeechVoiceOnly at the player's request to do so, because there is no guarantee that they even have a sound card and so may not understand what is going on.
Example:
if (IsSpeechVoxAvailable()==1)
Speech.VoiceMode = eSpeechVoiceAndText;
will set the voice mode to voice and text if the voice pack is available.
Getting Started in AGS
Editor Reference
- Music and sound
- Distributing your game
- Backing up your game
- The text parser
- Translations
- Global variables
- Custom Properties
- Plugins
- Lip sync
- New Game templates
- Debugging features
- Auto-number speech files
- Integration with Windows
- Source Control integration
Engine
Scripting
- Scripting tutorial part 1
- Scripting tutorial part 2
- Pointers in AGS
- Calling global functions from local scripts
- The script header
- String formatting
- Multiple Scripts
- Understanding blocking scripts
- Dynamic Arrays
- Extender functions
- Game variables
- Predefined global script functions
- repeatedly_execute (_always)
- Custom dialog options rendering
- Built-in enumerated types
- Script language keywords
- AudioChannel functions and properties
- AudioClip functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game / Global functions
- GUI functions and properties
- GUI control functions and properties
- GUI Button functions and properties
- GUI InvWindow functions and properties
- GUI Label functions and properties
- GUI List Box functions and properties
- GUI Slider properties
- GUI Text Box functions and properties
- Hotspot functions and properties
- Inventory item functions and properties
- Maths functions and properties
- Mouse functions and properties
- Multimedia functions
- Object functions and properties
- Overlay functions and properties
- Palette functions
- Parser functions
- Region functions and properties
- Room functions
- Screen functions
- Speech functions and properties
- String functions
- System functions and properties
- Text display / Speech functions
- ViewFrame functions and properties
Working on Legacy games
Upgrading from a previous version
- Upgrading to AGS 2.7
- Upgrading to AGS 2.71
- Upgrading to AGS 3.0
- Upgrading to AGS 3.1
- Upgrading to AGS 3.2
- Upgrading to AGS 3.3
- Upgrading to AGS 3.3.5
- Upgrading to AGS 3.4
- Upgrading to AGS 3.4.1
Legal Notice
Getting in touch