Jump to content

some scripting issues (again)


blooddawning

Recommended Posts

I've been trying to make an armour set, which when you equip fully, you gain an enchanted sword, and when you take of parts of the armour set, you lose the sword.

I can get the sword to be added fine, It just won't be removed when I take the armour off.

Here's my script

SCN AKNFULLSCRIPT

begin OnEquip player
if ( player.GetEquipped AKNBOOTS == 1 ) && (player.GetEquipped AKNHOOD == 1) && (player.GetEquipped AKNMASK ==1) && ( player.GetEquipped AKNCUIRASS == 1 ) && ( player.GetEquipped AKNGLOVES == 1 ) && ( player.GetEquipped AKNGREAVES == 1 )
 Message "I am no more, I am the Wraith"
 Message "I am no more, I am the Wraith"
 player.addspell AKNSET3
 player.additem AKNBLADE 01
endif
end

begin OnUnEquip player
 if ( removespell AKNSET3 == 0 ) && (removeitem AKNBLADE 01 == 0)
 player.removespell AKNSET3
 player.removeitem AKNBLADE 01
endif
end

Does anyone know any way to fix it? =\

Link to comment
Share on other sites

Remove that OnUnEquip block from the script and add this script to the AknBlade.

 

scn isAllArmorOn

begin gameMode
 if (player.getEquipped ThisAndthat) && (player.getEquipped ThisAndThat)
 return
 else
 removeMe
 endif
end

 

That just says if i have this and that equipped then do nothing, but if i don't then remove me(the AknBlade).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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