pbehhe Posted November 26, 2012 Share Posted November 26, 2012 (edited) as I said in the description, I took:"Game.GetPlayer().ModActorValue("health", 10.0)"and changed it to:"Game.GetPlayer().ModActorValue("Invisibility", 1.0)" and on compilation I get:\Invisibility.psc(3,4): no viable alternative at input '.'No output generated for Invisibility, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on Invisibility this script is in a magic effect of an invisibility archtype, and It is used in an enchantment. please help. Edited November 26, 2012 by pbehhe Link to comment Share on other sites More sharing options...
Ghaunadaur Posted November 26, 2012 Share Posted November 26, 2012 If the script is on a magic effect, you should put that function inside an OnEffectStart event: Scriptname YourScriptName extends ActiveMagicEffect Event OnEffectStart(Actor akTarget, Actor akCaster) Game.GetPlayer().ModActorValue("Invisibility", 1.0) EndEvent Link to comment Share on other sites More sharing options...
pbehhe Posted November 27, 2012 Author Share Posted November 27, 2012 It is meant for an enchantment, Do I still need an event? Link to comment Share on other sites More sharing options...
Ghaunadaur Posted November 27, 2012 Share Posted November 27, 2012 Possibly you don't need a script at all to make the magic effect. You could just choose 'Invisibility' for the effect archetype. If you take a look at the invisibility effects in the CK, they are set up this way (ie. InvisibillityFFActor, InvisibillityFFSelf, TG08BInvisibillityFFContact). But yes, if you decide to use a script for the magic effect, you need an event. Link to comment Share on other sites More sharing options...
Recommended Posts