This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
scripting_reference [2021/06/19 12:59] – justin | scripting_reference [2021/10/30 20:00] – justin | ||
---|---|---|---|
Line 3: | Line 3: | ||
=====Action Functions===== | =====Action Functions===== | ||
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. | 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. | ||
+ | |||
+ | Parameters marked with an asterisk (*) are optional. If an optional parameter is passed to a function, any preceding optional parameters must also be included. | ||
+ | |||
^Name^Signature^ | ^Name^Signature^ | ||
|[[add_character|Add Character]]|**add_character**(// | |[[add_character|Add Character]]|**add_character**(// | ||
Line 17: | Line 20: | ||
|[[detach_object|Detach Object]]|**detach_object**(// | |[[detach_object|Detach Object]]|**detach_object**(// | ||
|[[disable_container|Disable Container]]|**disable_container**(// | |[[disable_container|Disable Container]]|**disable_container**(// | ||
- | |[[display_message|Display Message]]|**display_message**(// | + | |[[display_choices|Display Choices]]|**display_choices**(// |
+ | |[[display_message|Display Message]]|**display_message**(// | ||
|[[enable_container|Enable Container]]|**enable_container**(// | |[[enable_container|Enable Container]]|**enable_container**(// | ||
|[[end_battle|End Battle]]|**end_battle**(// | |[[end_battle|End Battle]]|**end_battle**(// | ||
Line 50: | Line 54: | ||
|[[play_sound|Play Sound]]|**play_sound**(// | |[[play_sound|Play Sound]]|**play_sound**(// | ||
|[[print|Print]]|**print**(// | |[[print|Print]]|**print**(// | ||
- | |[[put_entity|Put Entity]]|**put_entity**(// | + | |[[put_entity|Put Entity]]|**put_entity**(// |
- | |[[put_player|Put Player]]|**put_player**(// | + | |[[put_player|Put Player]]|**put_player**(// |
|[[remove_entity|Remove Entity]]|**remove_entity**(// | |[[remove_entity|Remove Entity]]|**remove_entity**(// | ||
|[[remove_from_group|Remove From Group]]|**remove_from_group**(// | |[[remove_from_group|Remove From Group]]|**remove_from_group**(// | ||
Line 72: | Line 76: | ||
|[[set_ambient_light_color|Set Ambient Light Color]]|**set_ambient_light_color**(// | |[[set_ambient_light_color|Set Ambient Light Color]]|**set_ambient_light_color**(// | ||
|[[set_ambient_light_enabled|Set Ambient Light Enabled]]|**set_ambient_light_enabled**(// | |[[set_ambient_light_enabled|Set Ambient Light Enabled]]|**set_ambient_light_enabled**(// | ||
+ | |[[set_ambient_light_intensity|Set Ambient Light Intensity]]|**set_ambient_light_intensity**(// | ||
|[[set_animation_speed|Set Animation Speed]]|**set_animation_speed**(// | |[[set_animation_speed|Set Animation Speed]]|**set_animation_speed**(// | ||
|[[set_character_name|Set Character Name]]|**set_character_name**(// | |[[set_character_name|Set Character Name]]|**set_character_name**(// | ||
Line 77: | Line 82: | ||
|[[set_directional_light_color|Set Directional Light Color]]|**set_directional_light_color**(// | |[[set_directional_light_color|Set Directional Light Color]]|**set_directional_light_color**(// | ||
|[[set_directional_light_enabled|Set Directional Light Enabled]]|**set_directional_light_enabled**(// | |[[set_directional_light_enabled|Set Directional Light Enabled]]|**set_directional_light_enabled**(// | ||
+ | |[[set_directional_light_intensity|Set Directional Light Intensity]]|**set_directional_light_intensity**(// | ||
|[[set_entity_blocks_sight|Set Entity Blocks Sight]]|**set_entity_blocks_sight**(// | |[[set_entity_blocks_sight|Set Entity Blocks Sight]]|**set_entity_blocks_sight**(// | ||
|[[set_entity_light_attenuation|Set Entity Light Attenuation]]|**set_entity_light_attenuation**(// | |[[set_entity_light_attenuation|Set Entity Light Attenuation]]|**set_entity_light_attenuation**(// |