documentation indexreference manualfunction index

Character.copy

Method: Character.copy (...):

The copy method on Characters takes the same arguments as the funcref Character constructor, with the exception that the name argument is optional. This method returns a new Character object, one that is created by combining the arguments of the original constructor and this method, with the arguments provided by this method taking precedence.

Example

init:
    $ e = Character("Eileen")
    $ e_red = e.copy(color="#f00")



documentation indexreference manualfunction index