User event

Calls the scripts  –   from the mod’s scripts folder, within the context of the instance using this function and the script it’s used in.

Syntax
user_event( num );

Returns
type (descriptive name)

Basic
//This code runs a custom event during certain points in USPECIAL and FSPECIAL. This could be things like building meter or activating a status effect, but really it's up to you. if (attack == AT_USPECIAL && window == 2 && window_timer == 1) { user_event( 2 ); } if (attack == AT_FSPECIAL && window == 4 == window_timer == 1) { user_event( 2 ); }