Author Topic: Visual Effect Stacking Bug  (Read 311 times)

Legacy_Irisiri

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Visual Effect Stacking Bug
« on: February 06, 2012, 09:55:24 am »


               If I add a simple VFX to a placeable using (for example)

effect eVFX = EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVFX, OBJECT_SELF);

my characters will see one of this effect on the placeable, but as soon as I go out of sight and come back close, nwn will create the effect another time and it will stack, and I can repeat and even the alpha layer wich should be transparent will turn into somthing very bright and colorful.

Also removing all effects using a loop will only remove the first and original visual effect all the new ones created by sight/out of sight will remain

This problem disapear if you change area and come back : only 1 visual effect as intended.

Any idea how to solve this problem?

not sure if it will help but I have tested the following VFX's
VFX_DUR_GLOBE_MINOR
VFX_DUR_GLOBE_INVULNERABILITY
VFX_DUR_GLYPH_OF_WARDING
.. same problem for all.
               
               

               


                     Modifié par Irisiri, 06 février 2012 - 10:00 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Visual Effect Stacking Bug
« Reply #1 on: February 06, 2012, 03:45:15 pm »


               You can't solve it, other than preventing the vfx from leaving and reentering the player's field of view, by keeping area sizes down. I mentioned this issue a few threads down, actually, in the thread about monsters scarecrowing inappropriately in similar situations.

Funky