Composite Scenes System

battle_composite_scenes_system objects facilitates the interaction with composite scenes instances. A handle to a composite scene system object may be obtained through the battle:composite_scenes_system function.

Loaded in Campaign Loaded in Campaign
Loaded in Battle Loaded in Battle
Loaded in Frontend Loaded in Frontend
Back to top

Functionality

composite_scenes_system:terrain_composite_scenes()

Returns a list of all terrain composite scenes on the map.

Returns:

  1. battle_composite_scenes_list list

composite_scenes_system:composite_scenes_by_scene_name(string scene_name)

Returns a list of all terrain composite scenes with the given scene name.

Parameters:

1

string

scene_name

Returns:

  1. battle_composite_scenes_list selected composite scenes

composite_scenes_system:composite_scenes_by_parent_script_id(string parent_script_id)

Returns a list of all terrain composite scenes who have this parent script id.

Parameters:

1

string

parent_script_id

Returns:

  1. battle_composite_scenes_list selected composite scenes

composite_scenes_system:composite_scene_by_script_id(string script id)

Returns a terrain composite scene with the given script id.

Parameters:

1

string

script id

Returns:

  1. battle_composite_scene selected composite scene

Composite Scenes List

A battle_composite_scenes_list object represents an array of composite scenes instances.

Handles to composite scenes list objects may be obtained through the battle_composite_scenes_system interface.

Back to top

Functionality

composite_scenes_list:item(number index)

Returns the composite scene in the given position in the list.

Parameters:

1

number

index

Returns:

  1. battle_composite_scene selected composite scene

composite_scenes_list:search_by_script_id(string script_id)

Returns the composite scene with the given script id.

Parameters:

1

string

script_id

Returns:

  1. battle_composite_scene selected composite scene

composite_scenes_list:search_by_parent_script_id(string script_id)

Returns the composite scene which this parent script id.

Parameters:

1

string

script_id

Returns:

  1. battle_composite_scene selected composite scene

composite_scenes_list:search_by_scene_name(string scene_name)

Returns a composite scene list of composite scenes with the given scene name.

Parameters:

1

string

scene_name

Returns:

  1. battle_composite_scenes_list selected composite scenes

composite_scenes_list:enable([boolean enable], [boolean loop])

Enables/disable the all composite scenes in the list.

Parameters:

1

boolean

optional, default value=true

enable

2

boolean

optional, default value=true

loop

Returns:

  1. nil

composite_scenes_list:count()

Returns the number composite scenes in the list.

Returns:

  1. number list size

Composite Scene

A battle_composite_scene object represents a composite scene instance.

Handles to composite scene objects may be obtained through the battle_composite_scenes_system and battle_composite_scenes_list interfaces.

Back to top

Functionality

composite_scene:enabled()

Returns whether the composite scene instance is enabled.

Returns:

  1. boolean true/false

composite_scene:enable([boolean enable], [boolean loop])

Enables/disable the composite scene.

Parameters:

1

boolean

optional, default value=true

enable

2

boolean

optional, default value=true

loop

Returns:

  1. nil

composite_scene:scene_name()

Returns the scene name of the composite scene.

Returns:

  1. string scene name

composite_scene:script_id()

Returns the script id of the composite scene.

Returns:

  1. string script id
Last updated 7/9/2024 11:45:05 AM