New Enchantment: Sting from LOTR

Post » Thu Sep 25, 2014 2:49 pm

Is an enchantment that glows when enemies are near feasible? It seemed pretty easy, until I wondered how you would use GetDistance for a condition check for "enemies". Is there a condition function or anyway to get if a hostile actor is near you? I know there's IsHostile, but you can't really do anything for GetDistance Subject to Any Hostile Actor.

User avatar
Spaceman
 
Posts: 3429
Joined: Wed May 23, 2007 10:09 am

Post » Thu Sep 25, 2014 2:19 am

I think the much harder part will be figuring out how to make a wielded weapon glow on command.

User avatar
Lou
 
Posts: 3518
Joined: Wed Aug 23, 2006 6:56 pm

Post » Thu Sep 25, 2014 10:49 am

Maybe so.

Couldn't I do something similar to Dawnbreaker? Or an effect shader on the sword itself? It doesn't necessarily have to emit actual light, though that would be best. Just sort of a glow or an effect.

User avatar
Shae Munro
 
Posts: 3443
Joined: Fri Feb 23, 2007 11:32 am

Post » Thu Sep 25, 2014 10:36 am

You can do something similar to Dawnbreaker, but that would require making a custom mesh with 3d effects, and those effects can't be started or stopped via script as far as I know, it would be pre-determined when you design the mesh.

You can't play effect shaders on specific worn or wielded items. You can play an effect shader on the entire actor, or you can put an enchantment on the weapon which will play an effect shader on the weapon the whole time that it is wielded (and you can't change that effect unless the weapon is removed and then re-equipped).

User avatar
Emma Louise Adams
 
Posts: 3527
Joined: Wed Jun 28, 2006 4:15 pm

Post » Thu Sep 25, 2014 7:09 am

Hmmm.

Alright then. I thought I might be able to make a conditional sort of enchantment, which would be on or off depending, but you're far better with enchantments and magic than I, so I'll just assume it's impossible.

User avatar
Queen
 
Posts: 3480
Joined: Fri Dec 29, 2006 1:00 pm

Post » Thu Sep 25, 2014 7:02 am

Similar to conditions you place on a Magic Effect, all other data on the Magic Effect screen, including visual effects, are only evaluated when the effect is first equipped or takes effect. The actual damage or other effect from the Enchantment (which is different than the Magic Effect) can be controlled by conditions on the Enchantment's effect item, but visuals will not change once the item is equipped.

User avatar
Hairul Hafis
 
Posts: 3516
Joined: Mon Oct 29, 2007 12:22 am

Post » Thu Sep 25, 2014 5:41 pm

Alright. Thanks.

User avatar
JaNnatul Naimah
 
Posts: 3455
Joined: Fri Jun 23, 2006 8:33 am


Return to V - Skyrim