|string||The ID of the character to replace|
|sprite||The new sprite to draw as a character body|
|sprite||The new sprite to draw as an idle face (or keyword |
|sprite||The new sprite to draw as a talking face (or keyword |
|real||The horizontal position to display the face, relative to the body sprite top-left corner (or keyword |
|real||The vertical position to display the face, relative to the body sprite top-left corner (or keyword |
|boolean||Enables or disables horizontally flipping the character|
|real||Sets the duration of the fade transition, in seconds|
|integer/macro||Optional: Sets the ease mode to perform the transition in|
Replaces the input entity ID with a new set of sprites and fades the old character to the new one over the input duration.
Note that using separate face sprites is optional. If only a body sprite is desired,
spr_face_talk can be set to -1 or the keyword
none to disable them.
As with other types of modifications, replacements made with this script are permanent and will persist until another replacement is performed. This script cannot be performed simultaneously with other replacement actions operating on the same entity ID.
See Macros & Keywords for a list of available ease modes.