monkeyboi Posted November 3, 2010 Author Share Posted November 3, 2010 okay so i changed the script around but for some reason it wont appear on the list of scripts...is there some stupid reason why that i could be missing? Link to comment Share on other sites More sharing options...
WastelandAssassin Posted November 3, 2010 Share Posted November 3, 2010 this is strange......have you saved the script, and changed it's name before??because if not, then you have just changed the original scriptalso, if you used that template for the script, then the mod that adds it is a master for your plugin (at least as far as i know)so you need to load it as well, or just copy\paste the script, to prevent it being the master Link to comment Share on other sites More sharing options...
monkeyboi Posted November 3, 2010 Author Share Posted November 3, 2010 okay so i got the script ingame and you were correct.all it did was give me the other spell. what is the command to cast a spell on player? Link to comment Share on other sites More sharing options...
monkeyboi Posted November 3, 2010 Author Share Posted November 3, 2010 alright i got a basic code up but every time i try to save it i get an error messagehere is my code:Scriptname 1ashieldtogglenodrainscript Begin ScriptEffectStart If player.IsSpellTarget 1ashield5== 0 player.cast 1ashield5 endif elseIf player.IsSpellTarget 1ashield5== 1 player.dispel 1ashield5 endif End the error:line6 missing ObjectReferenceIDi have no clue what that means...any advice on that? Link to comment Share on other sites More sharing options...
documn Posted November 4, 2010 Share Posted November 4, 2010 I made a mod that's kinda like what you're talking about here. It's called Spellshields, and the link is in my signature in Oblivion mods. You're welcome to look at the scripts to check out how I did it. I'm not sure if it works exactly the way you want to set up your spells, but maybe it'll help you out a little. Link to comment Share on other sites More sharing options...
WastelandAssassin Posted November 4, 2010 Share Posted November 4, 2010 i think the problem is with your ifs and elseremove the else, and change the second if to an elseifand also remove the first endifthis should solve this problemthen try to save the script, and we'll see if any other problem pops up Link to comment Share on other sites More sharing options...
monkeyboi Posted November 4, 2010 Author Share Posted November 4, 2010 (edited) ok, sorry it took so long (school). but i tried that and i still get the same error...ill keep trying and posting... documn i looked at your mod, first i like it it has a cool concept. i just need to figure out what your scripts do...i don't recognize some of those commands EDIT:okay, i got the error to go away, and the spell is cast able.but when i do i get the alteration XP and no enchantment...i think what is happening is that the effect could be turning on then off too quickly... code:Scriptname 1ashieldtogglenodrainscript Begin ScriptEffectStart If ( player.IsSpellTarget 1ashield5== 0 ) cast 1ashield5 player elseif (player.Ispelltarget 1ashield5==1) player.dispel 1ashield5 endif End EDIT2:so i got the toggle to work, all i did was add a time to the shield spell, but for some reason when i try setting time to zero it just wont work. for now ill just set the effect to some ungodly time,or try changing it from a 'spell' (1ashield5) to a power... Edited November 4, 2010 by monkeyboi Link to comment Share on other sites More sharing options...
monkeyboi Posted November 4, 2010 Author Share Posted November 4, 2010 okay toggle works.i think i know how to get the players magicka (getav magicka)but i set it to elseif (player.getav magicka <=0)player.dispel <spell> but when my magicka hits 0 the spell continues... Link to comment Share on other sites More sharing options...
WastelandAssassin Posted November 4, 2010 Share Posted November 4, 2010 i think this command gives you the max magicka, not the current one i'm sorry i can't be more helpful, but my knowledge is limited...... Link to comment Share on other sites More sharing options...
monkeyboi Posted November 4, 2010 Author Share Posted November 4, 2010 the command to change stats is modAv, setAV or forceAV... i thought... ill keep trying/posting Link to comment Share on other sites More sharing options...
Recommended Posts