So, this script should be enough to initialize the mod and register the quest actions, right (i'll test it when I'm off work lol)? Or do I need to include anything else? Sorry, it's my first time doing this so I have a lot of dumb questions dskjdskjh
Code: Select all
using System;
using System.Collections.Generic;
using UnityEngine;
using DaggerfallConnect;
using DaggerfallConnect.Arena2;
using DaggerfallWorkshop.Game;
using DaggerfallWorkshop.Game.Questing;
using DaggerfallWorkshop.Game.Utility.ModSupport;
using DaggerfallWorkshop;
using DaggerfallWorkshop.Game.Utility.ModSupport.ModSettings;
namespace HealthAction
{
public class HealthActionMod : MonoBehaviour
{
static Mod mod;
[Invoke(StateManager.StateTypes.Start, 0)]
public static void Init(InitParams initParams)
{
mod = initParams.Mod;
var go = new GameObject(mod.Title);
GameManager.Instance.QuestMachine.RegisterAction(new WhenHealthLevel(null));
GameManager.Instance.QuestMachine.RegisterAction(new WhenHealthLevelPercent(null));
}
void Awake()
{
InitMod();
mod.IsReady = true;
}
}