Mod Help Request - New StatusEffect on Pod Activation

Post Reply
GetSome
Posts: 1
Joined: Sat Feb 04, 2017 6:18 am

Mod Help Request - New StatusEffect on Pod Activation

Post by GetSome »

Howdy howdy howdy,

Looking to get into making simple mods and am hoping I can be pointed in the right direction.

I'm looking to create a mod that applies a new status effect (can use disorient for now) to enemies when their pod is revealed on the player's turn. The goal is to open the map up for aggressive flanking maneuvers by rewarding discovering enemies on the player's turn rather than allowing them to discover you.

What classes should I be looking in? Looks like XGAIPlayer handles scampering (does this only refer to pod activation scampering?) and I can use something like IsScampering to determine when to apply the debuff.

And how should I build the mod? My current thought is this:

- Define new status effect
- On pod activation, cycle through all members of pod
/ Alternatively, each alien action check to see if alien is scampering
- Check if it's the player's turn (no idea how to figure this out)
- If true, apply new status effect

I have some experience with coding and modding, but currently I have pretty much no idea how to handle this so I'll be doing some trial and error to figure this out. Any assistance would be much appreciated.
Post Reply