I am having trouble applying an effect to a non NPC object
4BOLTMAIN
Member Posts: 90
As the title states I am trying to apply a specific effect to a non NPC object in an area and I do not know how to make this work. If I choose a NPC to apply the effect to it works fine. I am able to do other effects on objects but this one is stubborn. Here is what I have tried...
How can I apply this effect to a location without using a NPC?
/* I CANT GET THIS TO WORK... LOL! if (GetTag(oObject) == "MagicSparksBlue") { DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_PERMANENT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), oObject)); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), oObject)); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), oObject)); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), oObject)); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_PERMANENT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), oObject)); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), oObject)); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, MagicalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), oObject)); DelayCommand( 0.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), oObject)); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), GetLocation(oObject))); DelayCommand( 0.2, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectVisualEffect(VFX_DUR_PROT_EPIC_ARMOR, TRUE)), GetLocation(oObject))); } */
How can I apply this effect to a location without using a NPC?
0
Comments
I was able to put an invisible object in the center of a castle interior tileset fountain with the z location set to -0.4 and it still worked.
"The object that this command is applied to has to be usable or, at least, not static (for a placeable)."
I did not see this when I was looking through the information. This would have saved me a lot of time. Thanks for clarifying.