— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Action functions are used to trigger certain actions or events in your game, such as loading a map, playing an animation, or healing a character. These functions allow you to control the flow of your game and help give life to its world! Click on a function name for more details around its usage.
Name | Signature |
---|---|
Add Character | add_character(model_name, tile, entity_id) |
Add Item To Container | add_item_to_container(entity, item_id, count) |
Add Object | add_object(model_name, tile, entity_id) |
Add Party Member | add_party_member(model_name, member_id) |
Add Tile | add_tile(model_name, coordinate, entity_id) |
Damage Entity | damage_entity(entity, damage_amount) |
Disable Container | disable_container(entity_id) |
Display Message | display_message(message_text) |
Enable Container | enable_container(entity_id) |
End Battle | end_battle(victory) |
Execute Script | execute_script(script_name) |
Fade In | fade_in(duration) |
Fade Out | fade_out(duration) |
Give Item | give_item(item_id, count) |
Heal Entity | heal_entity(entity, heal_amount) |
Hide Group | hide_group(group_name) |
Hide Inventory | hide_inventory() |
Hide Toolbar | hide_toolbar() |
Load Map | load_map(map_name, player_coord, player_direction) |
Lock Camera | lock_camera() |
Lock/Unlock Player Interaction | set_player_interaction_locked(is_locked) |
Lock/Unlock Player Movement | set_player_movement_locked(is_locked) |
Look At Target | look_at_target(target) |
Look At Target Over Time | look_at_target_over_time(target, duration) |
Modify Navigation | modify_navigation(first_tile_id, second_tile_id, navigation_type) |
Move Camera | move_camera(destination, look_at_target) |
Move Camera At Speed | move_camera_at_speed(destination, speed, look_at_target) |
Move Camera Over Time | move_camera_over_time(destination, duration, look_at_target) |
Move Character | move_character(character, tile) |
Move Player | move_player(tile) |
Move Platform | move_platform(tile, waypoint_name, pause) |
Override Animation | override_animation(entity, anim_to_override, override_with) |
Play Animation | play_animation(entity, animation_name) |
Play Group Animation | play_group_animation(group_name, animation_name) |
Play Sound | play_sound(sound_name) |
print(data) | |
Put Entity | put_entity(entity, tile_id) |
Put Player | put_player(tile_id, direction) |
Remove Entity | remove_entity(entity) |
Remove Item | remove_item(item_id, count) |
Remove Party Member | remove_party_member(member_id) |
Replace Navigation | replace_navigation(entity, navigation_type, new_navigation_type) |
Reset Camera | reset_camera() |
Reset Camera At Speed | reset_camera_at_speed(speed) |
Reset Camera Over Time | reset_camera_over_time(duration) |
Reset Entity Rotation | reset_entity_rotation(entity, duration) |
Restore Party Member | restore_party_member(member_id) |
Revive Character | revive_character(character, heal_amount) |
Rotate Camera | rotate_camera(horizontal_angle, vertical_angle) |
Rotate Camera Over Time | rotate_camera_over_time(horizontal_angle, vertical_angle, duration) |
Rotate Entity Towards | rotate_entity_towards(entity, target_entity, also_rotate_target, duration) |
Rotate Player To Direction | rotate_player_to_direction(direction) |
Set Ambient Light Color | set_ambient_light_color(color, duration) |
Set Ambient Light Enabled | set_ambient_light_enabled(enabled) |
Set Animation Speed | set_animation_speed(entity, animation_name, speed) |
Set Character Name | set_character_name(character_id, name) |
Set Dialogue | set_dialogue(character_id, dialogue_name) |
Set Directional Light Color | set_directional_light_color(color, duration) |
Set Directional Light Enabled | set_directional_light_enabled(enabled) |
Set Entity Blocks Sight | set_entity_blocks_sight(entity, blocks_sight) |
Set Entity Light Color | set_entity_light_color(entity, color, duration) |
Set Entity Light Enabled | set_entity_light_enabled(entity, enabled) |
Set Entity Model | set_entity_model(entity, model_name) |
Set Entity Property | set_entity_property(entity, property_name, property_value) |
Set Entity Script | set_entity_script(entity, script_name) |
Set Entity Tooltip | set_entity_tooltip(entity, tooltip_text) |
Set Global Property | set_global_property(property_name, property_value) |
Set Group Light Color | set_group_light_color(group_name, color, duration) |
Set Group Light Enabled | set_group_light_enabled(group_name, enabled) |
Set Language | set_language(locale_code) |
Set Movement Speed | set_movement_speed(character, speed) |
Set Vision Height | set_vision_height(character, height) |
Show Credits | show_credits() |
Show Group | show_group(group_name) |
Show Inventory | show_inventory() |
Show Toolbar | show_toolbar() |
Start Battle | start_battle(battle_name) |
Start Dialogue | start_dialogue(dialogue_name) |
Stop Player | stop_player() |
Wait | wait(duration) |