LcSmugly18 Posted December 7, 2018 Share Posted December 7, 2018 I need a bit of advice on a toggleable eye power that I am currently working on for a race mod. It is basically nighteye + aura whisper. The nighteye part of my ability works just fine but I need help with removing the visual effect of the aura whisper effect. This is the basic format of the script: Scriptname spelltoggle extends activemagiceffect Spell Property YourAbility Auto Event OnEffectStart (Actor akTarget, Actor akCaster) If akTarget.HasSpell(YourAbility) == false akTarget.AddSpell(YourAbility, false) Else akTarget.RemoveSpell(YourAbility) EndIfEndEvent Can someone please help me figure out what line/s I need to add to turn off the visual effects. I am not very skilled in scripting so I would appreciate some of your guidance. Thanks in advance. Link to comment Share on other sites More sharing options...
TyburnKetch Posted December 7, 2018 Share Posted December 7, 2018 (edited) I am new to this myself but I believe the visual effects are their own entity and can be edited individually. You could also create a new magic effect with the desired effect and just leave out the visual effects. Basically you do not need script. Just play around in magic effects. Edited December 7, 2018 by TyburnKetch Link to comment Share on other sites More sharing options...
SeraphimKensai Posted December 8, 2018 Share Posted December 8, 2018 (edited) So if you want to make a toggleable spell or power, you need a total of 2 Magic Effects. 1 acts as the toggle, and needs a script to apply the actual effect which looks like you have. The 2nd Effect is the Effect used for the actual spell that does something. To change the Effect's visual, you can reference https://www.creationkit.com/index.php?title=EffectShader, and come up with a new Effect Shader for your custom aura whisper. You can also use a script to add in additional graphical effects via defining a property: EffectShader Property NameofShader auto, then adding in NameofShader.Play(akCaster, 1) in the OnEffectStart event. I'm pretty sure that you can type in NameofShader.Stop(akCaster) in your OnEffectFinish to ensure the effect is stopped as the effect ends. You'll need to make 2 spells, one for the toggle effect, and 1 for the actual spell. In the toggle effect, you'll define your properties to reference your Spell #2 (the effect spell). As you're trying to add a power to a race, add your new toggle spell to your race, and they should have access to it. Edited December 8, 2018 by SeraphimKensai Link to comment Share on other sites More sharing options...
LcSmugly18 Posted December 8, 2018 Author Share Posted December 8, 2018 So if you want to make a toggleable spell or power, you need a total of 2 Magic Effects. 1 acts as the toggle, and needs a script to apply the actual effect which looks like you have. The 2nd Effect is the Effect used for the actual spell that does something. To change the Effect's visual, you can reference https://www.creationkit.com/index.php?title=EffectShader, and come up with a new Effect Shader for your custom aura whisper. You can also use a script to add in additional graphical effects via defining a property: EffectShader Property NameofShader auto, then adding in NameofShader.Play(akCaster, 1) in the OnEffectStart event. I'm pretty sure that you can type in NameofShader.Stop(akCaster) in your OnEffectFinish to ensure the effect is stopped as the effect ends. You'll need to make 2 spells, one for the toggle effect, and 1 for the actual spell. In the toggle effect, you'll define your properties to reference your Spell #2 (the effect spell). As you're trying to add a power to a race, add your new toggle spell to your race, and they should have access to it.I am not very good at scripting and that is why I was asking for an example. Yes I have a spell that adds the actual ability and the spell does toggle on and off the problem is just the visual effect and that is what I need help wtih. Link to comment Share on other sites More sharing options...
TyburnKetch Posted December 8, 2018 Share Posted December 8, 2018 You need to edit the magic effect that is attached to your spell. Link to comment Share on other sites More sharing options...
LcSmugly18 Posted December 8, 2018 Author Share Posted December 8, 2018 You need to edit the magic effect that is attached to your spell.Edit it how exactly? Link to comment Share on other sites More sharing options...
TyburnKetch Posted December 8, 2018 Share Posted December 8, 2018 (edited) Under magic effects in the object window. Find the magic effect you want to look at - (aura whisper? Or the effect that is attached to the aura whisper spell - not on CK so can not check right now for your exact effect) On the form are various effects. Have a play around with the visual effects (or simply select none). Save it as a new form (do not over write the original) Apologies if this is obvious. Attach the effect to your spell and you are good to go. Basically you can control the visual effects of a spell from the magic effects attached to it. If you do not want visual effects simply select none from the various visual effects drop downs attached to the magic effect form - (found under magic - magic effects in the object window) Edited December 8, 2018 by TyburnKetch Link to comment Share on other sites More sharing options...
foamyesque Posted December 9, 2018 Share Posted December 9, 2018 (edited) Note that you do want visual effects on the target, or they won't get highlighted, which will defeat the point of the mod. The line to look for is this one: "Image Space Mod". That allows you to implement global modifiers to a player's vision if a magic spell is active (thats what ImageSpace modifiers are; there's a whole bunch in the base game that handle the distortion effects of various spells, fade to blacks, etc). Set that to "None" and you'll have perfectly normal vision but everything else will work. The Night Eye effect will then apply its own image modifier, but that's what you want. Edited December 9, 2018 by foamyesque Link to comment Share on other sites More sharing options...
Recommended Posts