Jump to content

Scripting help


monkeyboi

Recommended Posts

this is strange......

have you saved the script, and changed it's name before??

because if not, then you have just changed the original script

also, 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

alright i got a basic code up but every time i try to save it i get an error message

here is my code:

Scriptname 1ashieldtogglenodrainscript

 

Begin ScriptEffectStart

 

If player.IsSpellTarget 1ashield5== 0

player.cast 1ashield5

endif

else

If player.IsSpellTarget 1ashield5== 1

player.dispel 1ashield5

endif

 

End

 

the error:

line6 missing ObjectReferenceID

i have no clue what that means...

any advice on that?

Link to comment
Share on other sites

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

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 by monkeyboi
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...