Some APIs use special IDs, such as a plugin ID or action ID. The editor provides some methods you can use from the browser console to explore which IDs are available.
Listing addon IDs
C3SDK_ListAddonIDs(addonType) method lists all installed addon IDs in the editor. The addonType parameter must be
"behavior". For example, load Construct 3 in a browser, open the browser console (usually F12), and enter the following call to list all plugin IDs:
This may take a moment to load, but then it will log to the console the ID for every installed plugin, along with its name as used in the editor (since this is sometimes different to the ID for legacy reasons).
Listing ACE IDs
C3SDK_ListACEIDs(addonType, addonId, aceType) method lists the IDs for an addon's actions, conditions or expressions (ACEs). The parameters it takes are:
- addonType: as before, either
- addonId: the ID of the addon, which can be found using
- aceType: one of
"expressions", determining which to list.
For example the following call will list all of the Sprite plugin's action IDs. The parameters each takes are also listed.
C3SDK_ListACEIDs("plugin", "Sprite", "actions")