promotional bannermobile promotional banner
premium banner
framework for more event commands

Description

I needed a firefly effect for an event and decided to make a helper mod because I couldn't find a good way to do it otherwise.
I will expand this helper mod if I need other effects.

currently there are only 3 actions.

action 1 and 2:
Fireflies

        ///     Usage:
        ///     action MiihauEventHelper_SpawnFirefly <tileX> <tileY> [durationMs] [baseRadius] [pulseAmplitude] [pulseSpeed] [color] [movementSpeed] [fadeInDurationMs] [fireflyId]
        ///
        ///     Example:
        ///     action MiihauEventHelper_SpawnFirefly 6 7 5000 0.9 0.1 0.3 #FF4938 15 3000 introGlow
        /// 
        ///     Then later:
        ///     Usage:
        ///     action MiihauEventHelper_RemoveFireFly <id> [fadeOutDurationMs]
        /// 
        ///     Example:
        ///     action MiihauEventHelper_RemoveFireFly introGlow



Example Event:
{
"Action": "EditData",
"Target": "Data/Events/Forest",
"Entries":
{
"{{ModId}}_fireFliesTest/F":"
    none/76 76/farmer 76 76 2/skippable/
    pause 1000/
    action MiihauEventHelper_SpawnFirefly 76 76 0 0.5 0.2 0.2 #863DFF 20 3000 firefly1/
    message \"after firefly 1\"/
    action MiihauEventHelper_SpawnFirefly 84 72 0 0.5 0.1 0.25 #863DFF 25 3500 firefly2/
    pause 300/
    action MiihauEventHelper_SpawnFirefly 83 76 0 0.55 0.13 0.15 #863DFF 25 2000 firefly3/
    pause 100/
    action MiihauEventHelper_SpawnFirefly 78 72 0 0.55 0.13 0.15 #863DFF 30 2000 firefly4/
    message \"after adding more firefly\"/
    action MiihauEventHelper_RemoveFirefly firefly1 3000/
    message \"after removing firefly 1\"/
    pause 2000/
    message \"now spawning firefly with 3 second timer\"/
    action MiihauEventHelper_SpawnFirefly 34 12 3000/
    pause 3000/
    message \"timed firefly removed\"/
    pause 1000/
    end/
    ",
}
},


action 3:
CustomEmote

///     Usage:
///     action MiihauEventHelper_CustomEmote <actor> <PathToSpriteFile> <XposInSprite> <YposInSprite> <width> <height> [YOffset = 0]
///
///     Example:
///     action MiihauEventHelper_CustomEmote Abigail Characters\\Emily 1 4 15 13 12

Example Event:
{
"Action": "EditData",
"Target": "Data/Events/Forest",
"Entries":
{
"{{ModId}}_CustomEmoteTest/F":"
    none/36 12/farmer 35 15 2 Abigail 36 15 2 Penny 37 15 2 Vincent 38 15 2/skippable/
    pause 2000/
    pause 200/
    emote Abigail 32 true/
    emote farmer 32 true/
    emote Penny 32 true/
    emote Vincent 32/
    pause 200/
    action MiihauEventHelper_CustomEmote Abigail Characters\\Emily 1 4 15 13 12/
    action MiihauEventHelper_CustomEmote farmer Characters\\Emily 1 4 15 28/
    action MiihauEventHelper_CustomEmote Penny Characters\\Emily 1 4 15 13 12/
    action MiihauEventHelper_CustomEmote Vincent Characters\\Emily 1 4 15 13 22/
    pause 5000/
    action MiihauEventHelper_CustomEmote Penny Characters\\Emily 1 4 15 13 12/
    emote Abigail 32/
    pause 1000/
    action MiihauEventHelper_CustomEmote farmer Characters\\Emily 1 4 15 28/
    pause 1000/
    action MiihauEventHelper_CustomEmote Abigail Characters\\Emily 1 4 15 13 12/
    pause 1000/
    action MiihauEventHelper_CustomEmote Penny Characters\\Emily 1 4 15 13 12/
    pause 1000/
    action MiihauEventHelper_CustomEmote Vincent Characters\\Emily 1 4 15 13 33/
    pause 3000/
    emote farmer 32/
    pause 200/
    action MiihauEventHelper_CustomEmote farmer Characters\\Emily 1 4 15 28/
    pause 2000/
    emote Abigail 32/
    pause 200/
    action MiihauEventHelper_CustomEmote Abigail Characters\\Emily 1 4 15 13 23/
    pause 1000/
    emote Vincent 32/
    pause 200/
    action MiihauEventHelper_CustomEmote Vincent Characters\\Emily 1 4 15 13 22/
    pause 2000/
    end/
    ",
}
},



Source Code