Jump to content

How do the new EFFECT modules work?


Recommended Posts

I figured out how to do traits, but I'm stumped as to how to do ExperienceEffect. With traits, it's relatively easy.


using System;
using KSP;
using UnityEngine;
using System.Collections;
using Experience;

namespace MoreTraits
{
[KSPAddon(KSPAddon.Startup.Instantly, false)]
public class GeologistTrait : ExperienceTrait
{
public static string path = KSPUtil.ApplicationRootPath + "GameData/MoreTraits/Traits.cfg";
static Type tp = typeof(ExperienceTrait);
static ProtoCrewMember kerbal;
public static ExperienceTraitConfig GeoConf = ExperienceTraitConfig.Create(ConfigNode.Load(path));
public static ExperienceTrait Geologist = Experience.ExperienceTrait.Create(tp, GeoConf, kerbal);
}
}

However, on the Effect's side, all of the effects appear to be located in Experience.Effects and inherit from ExperienceEffect.

1dpbPZP.png

Has anybody been able to figure it out?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...