User Tools

Site Tools


scripting_reference

This is an old revision of the document!


Scripting Reference


Functions

Click on a function name for more details around its usage.

NameSignature
Add Characteradd_character(model_name, tile, entity_id)
Add Objectadd_object(model_name, tile, entity_id)
Add Tileadd_tile(model_name, coordinate, entity_id)
Damage Entitydamage_entity(entity, damage_amount)
Disable Containerdisable_container(entity_id)
Display Messagedisplay_message(message_text)
Enable Containerenable_container(entity_id)
Execute Scriptexecute_script(script_name)
Fade Infade_in(duration)
Fade Outfade_out(duration)
Give Itemgive_item(item_name)
Heal Entityheal_entity(entity, heal_amount)
Hide Grouphide_group(group_name)
Hide Inventoryhide_inventory()
Hide Toolbarhide_toolbar()
Load Mapload_map(map_name, player_coord, player_direction)
Lock Cameralock_camera()
Lock/Unlock Player Interactionset_player_interaction_locked(is_locked)
Lock/Unlock Player Movementset_player_movement_locked(is_locked)
Look At Targetlook_at_target(target)
Look At Target Over Timelook_at_target_over_time(target, duration)
Modify Navigationmodify_navigation(first_tile_id, second_tile_id, navigation_type)
Move Cameramove_camera(destination, look_at_target)
Move Camera At Speedmove_camera_at_speed(destination, speed, look_at_target)
Move Camera Over Timemove_camera_over_time(destination, duration, look_at_target)
Move Charactermove_character(character, tile_id)
Move Playermove_player(tile_id)
Move Platformmove_platform(tile, waypoint_name, pause)
Override Animationoverride_animation(entity, anim_to_override, override_with)
Play Animationplay_animation(entity, animation_name)
Play Group Animationplay_group_animation(group_name, animation_name)
Play Soundplay_sound(sound_name)
Printprint(data)
Put Entityput_entity(entity_id, tile_id)
Put Playerput_player(tile_id, direction)
Remove Entityremove_entity(entity)
Remove Itemremove_item(item_name)
Replace Navigationreplace_navigation(entity, navigation_type, new_navigation_type)
Reset Camerareset_camera()
Reset Camera At Speedreset_camera_at_speed(speed)
Reset Camera Over Timereset_camera_over_time(duration)
Reset Entity Rotationreset_entity_rotation(entity, duration)
Rotate Camerarotate_camera(horizontal_angle, vertical_angle)
Rotate Camera Over Timerotate_camera_over_time(horizontal_angle, vertical_angle, duration)
Rotate Entity Towardsrotate_entity_towards(entity, target_entity, also_rotate_target, duration)
Rotate Player To Directionrotate_player_to_direction(direction)
Set Ambient Light Colorset_ambient_light_color(color, duration)
Set Ambient Light Enabledset_ambient_light_enabled(enabled)
Set Animation Speedset_animation_speed(entity, animation_name, speed)
Set Character Nameset_character_name(character_id, name)
Set Dialogueset_dialogue(character_id, dialogue_name)
Set Directional Light Colorset_directional_light_color(color, duration)
Set Directional Light Enabledset_directional_light_enabled(enabled)
Set Entity Blocks Sightset_entity_blocks_sight(entity, blocks_sight)
Set Entity Light Colorset_entity_light_color(entity, color, duration)
Set Entity Light Enabledset_entity_light_enabled(entity, enabled)
Set Entity Modelset_entity_model(entity, model_name)
Set Entity Propertyset_entity_property(entity, property_name, property_value)
Set Entity Scriptset_entity_script(entity, script_name)
Set Entity Tooltipset_entity_tooltip(entity, tooltip_text)
Set Global Propertyset_global_property(property_name, property_value)
Set Group Light Colorset_group_light_color(group_name, color, duration)
Set Group Light Enabledset_group_light_enabled(group_name, enabled)
Set Languageset_language(locale_code)
Set Movement Speedset_movement_speed(character, speed)
Set Vision Heightset_vision_height(character, height)
Show Creditsshow_credits()
Show Groupshow_group(group_name)
Show Inventoryshow_inventory()
Show Toolbarshow_toolbar()
Start Battlestart_battle(battle_name)
Start Dialoguestart_dialogue(dialogue_name)
Stop Playerstop_player()
Waitwait(duration)
scripting_reference.1576514131.txt.gz · Last modified: 2019/12/16 08:35 by justin