You are here

EffectAreaOfEffect function and vfx_persistent.2da

2 posts / 0 new
Last post
CorruptionOverw...
EffectAreaOfEffect function and vfx_persistent.2da

Alright maybe one of you here can help me wrap my head around this:

So I'm trying to learn how this function works. As the lexicon puts it:

effect EffectAreaOfEffect(
    int nAreaEffectId,
    string sOnEnterScript = "",
    string sHeartbeatScript = "",
    string sOnExitScript = ""
);

nAreaEffectId

The ID of the Area of Effect

It's that first interger I'm trying to wrap my head around. Now, from what I've been told that first interger has something to do with the vfx_persistent.2da - but as I go and look at that I notice the entries don't quite match up? Like for instance, acid fog:

effect eAOE = EffectAreaOfEffect(AOE_PER_FOGACID);

int nAreaEffectId there = AOE_PER_FOGACID, but when you go to the 2da:

0 VFX_PER_FOGACID

Is it just that VFX changes to AOE for some reason when referencing this? Or am I understanding this all wrong?

  • up
    50%
  • down
    50%
CorruptionOverw...

Found it. It's defined in nwscript.nss:

int AOE_PER_FOGACID                = 0;

  • up
    50%
  • down
    50%