LegacyCloud Posted March 4, 2016 Share Posted March 4, 2016 Problem: For the life of me I can not get this spell to fire and would really appreciate some assistance!Goal: a lesser power which when used triggers an activator in a home cell (for remote access to outfit manager)Here's what I have so far: Scriptname _LC_outfit extends activemagiceffect ObjectReference Property _DC_SortClothes Auto {Event OnEffectStart(Actor akTarget, Actor akCaster) _DC_sortclothes.activate(akCaster) Debug.Notification("Accessing Safehouse") EndEvent}This is assigned to an effect which is tied to a lesser power spell with Voice activation. The object reference has been set in the properties tab and everything compiles correctly but when the spell is cast in game nothing happens, not even the debug notification http://tesalliance.org/forums/uploads/emoticons/default_aa_sad.gifI've no doubt that I am once again missing something really simple but in my hours of searching have not come up with any results so now turn to the community for guidance! Should it be of consequence; the target object belongs to a seperate plugin (this spell is being made as an addon/patch for that plugin), however the origin .esp has been esmified and is confirmed as being recognized by this plugin as a master. Link to comment Share on other sites More sharing options...
lofgren Posted March 4, 2016 Share Posted March 4, 2016 You've got brackets around your whole function, turning them into a comment. Remove the brackets. Link to comment Share on other sites More sharing options...
LegacyCloud Posted March 4, 2016 Author Share Posted March 4, 2016 I knew it would be something stupid like that lol Don't even know how they came to be there, had assumed that papyrus had done it as part of the compile since I never typed them , oh well at least now the spell fires - and now I can see that it doesn't work anyway :( Back to the drawing board... Link to comment Share on other sites More sharing options...
JetSteele Posted March 4, 2016 Share Posted March 4, 2016 Did you put the spell cast on self? If not then that is why its not working. Try to replace akCaster by Game.GetPlayer() and see if it works, if it does then that means its the effect that is not set up properly and if it doesn't work then that means that its the script that isn't written properly though from what I see the script should be firing. Also is the property set in the property window (when clicking on the script to bring up the property list)? Link to comment Share on other sites More sharing options...
LegacyCloud Posted March 5, 2016 Author Share Posted March 5, 2016 (edited) Thanks for the input JetSteele; Your suggestion of replacing the akCaster with Game.getplayer() seems to have paid off - it now works! So now thanks to the assist from both of you here, the mod should be publishing later today - and I can finally utilize a proper player wardrobe system! :D You will of course both be credited for your assistance with this - thanks again :) Edited March 5, 2016 by LegacyCloud Link to comment Share on other sites More sharing options...
Recommended Posts