— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Adds a character to the specified tile within the map (if the tile is not already occupied by another character). The entity ID is optional and will be assigned to the new character if supplied.
add_character(effect_name, coordinate, entity_id)
Argument | Description | Type | Required |
---|---|---|---|
effect_name | Particle effect to use for the new effect. | String | Yes |
coordinate | ID or coordinate of the tile where the character will be placed. | String, Coordinate | Yes |
entity_id | Unique entity ID that will be assigned. | String | No |
The Remove Entity function can be triggered later to remove a character that was previously added to the scene with the Add Character function.
add_effect("flame", coord[0, 0, 0], "flame_01");
Results: A flame effect will be added to the map at coordinate (0, 0, 0) and will be assigned an ID of “flame_01”.
Use the Add Effect function to…