The micro script is directly attached to the object and stored when the object is saved in the scene or saved as a preset. The term micro script under sells this script type, there is nothing micro about it at all it is a full powered script, only that it is unique to this object. Be aware that if you delete the object, this script is lost forever. Optionally you could save this micro script to file for a later use then delete your object.
You can get a backup copy of this script from the folder Skyline Game Engine\Bin\Data\_Backup folder and the script will have the name of the object it was attached to.
Adding a micro script can be done in a variety of ways read on to find out how.
When learning scripting in Skyline, the micro script is a great starting point for messing around with lua. You don't have to worry about saving the script as it is saved with the scene. Just don't forget to save your scene!
Note: This menu item is dynamic / context sensitive, meaning that its function changes depending on the objects state i.e. when you go back to an object with an attached micro script this menu item will read “Lua – [Edit] Micro Script” by selecting this option you will be sent straight to this objects script ready to continue scripting.
An alternative way to access the micro script is to use the property icons.
As the micro script is a Skyline Action, the other way to add this script type is via the action editor.
From this action editor select the category “Script” and choose the Micro Script option.
Use the Blue arrows at the bottom to Add or remove action to this object or alternatively Double click the Action Name.