Maple2.Trigger 1.1.2

.NET Standard 2.1
dotnet add package Maple2.Trigger --version 1.1.2
NuGet\Install-Package Maple2.Trigger -Version 1.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Maple2.Trigger" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Maple2.Trigger --version 1.1.2
#r "nuget: Maple2.Trigger, 1.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Maple2.Trigger as a Cake Addin
#addin nuget:?package=Maple2.Trigger&version=1.1.2

// Install Maple2.Trigger as a Cake Tool
#tool nuget:?package=Maple2.Trigger&version=1.1.2

Maple2.Trigger (nuget)

Xml.m2d trigger scripts converted to C#

To use these scripts, you will have to implement ITriggerContext for functionality.

Basic Script Runner

public class TriggerScript {
    private readonly TriggerContext context;

    private TriggerState state;
    private TriggerState nextState;

    public TriggerScript(TriggerContext context, TriggerState start) {
        this.context = context;
        this.nextState = start;

    public void Next() {
        if (Environment.TickCount < context.NextTick) return;
        context.NextTick = Environment.TickCount + context.TickDelay;

        if (nextState != null) {
            state = nextState;
            nextState = null;

        nextState = state.Execute();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Maple2.Trigger:

Repository Stars
MapleStory 2 Emulator
Version Downloads Last updated
1.1.2 637 7/13/2022
1.1.0 5,019 2/16/2021
1.0.0 491 7/4/2020