This repository was archived by the owner on Dec 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Event Script
skellypupper edited this page May 29, 2023
·
6 revisions
Empty Script
Example events can be found here.
function init() {
name = "My Cool Event";
description = "A description for this cool event";
}
function createPost() {}
function preload(value1:String, value2:String) {}
function callback(value1:String, value2:String) {}
Global events can be made at events/<coolname>.hxs
.
Song exclusive events can be made at songs/<songnamehere>/events/<coolname>.hxs
.
Events are loaded in the following order:
- Song Events
- Mod Events (if applicable)
- Asset Events
If you have two events with the same init
name, the first one to load will be used.
-
name
: A string representing your event's display name, if unset your event will not load. -
description
: A string representing a description of your event for the charting state. Will appear asN/A
if unset.
-
game
: The active playstate instance. -
Paths
: The global paths instance.
-
init()
: Used to get aname
anddescription
for the event.
-
createPost()
: Called shortly after the event script is loaded, if your event comes with sprites or anything of the like, you can load them here. -
preload(value1:String, value2:String)
: Called each time the event appears in the chart. -
callback(value1:String, value2:String)
: Called when the event is invoked.
Written for EE v1.1.0