Jump to content

Papyrus bound armor help


Shoneah0Tokala

Recommended Posts

So I wrote a script for a bound armor and sword spell, unfortunately, as it say in the description after the power wears of my character is stark naked, I tried to add an extra couple of lines to the script to make him wear beggar clothes when it ends, which worked but then the player was stuck in those robes indefinately, as in I can't unequip them or put anything else back on. I am gonna attach my script to this post for users to look at and hopefully offer some insight.

Scriptname IceFormScript extends activemagiceffect  

Armor Property ClothesBeggarRobes auto
Armor Property ClothesBeggarBoots auto
Armor Property BoundEbonyBoots auto
Armor Property BoundEbonyCuirass auto
Armor Property BoundEbonyGauntlets auto
Armor Property BoundEbonyHelmet auto
Armor Property BoundEbonyShield auto
Weapon Property BoundEbonySword auto

Event OnEffectStart (Actor ckTarget, Actor ckCaster)

Utility.Wait(0.2)
Game.GetPlayer().EquipItem(BoundEbonyBoots, false, true)
Game.GetPlayer().EquipItem(BoundEbonyCuirass, false, true)
Game.GetPlayer().EquipItem(BoundEbonyGauntlets, false, true)
Game.GetPlayer().EquipItem(BoundEbonyHelmet, false, true)
Game.GetPlayer().EquipItem(BoundEbonyShield, false, true)
Game.GetPlayer().EquipItem(BoundEbonySword, false, true)

EndEvent

Event OnEffectFinish(Actor ckTarget, Actor ckCaster)

if (Game.GetPlayer().GetEquippedShield() == boundEbonyShield)
	Game.GetPlayer().RemoveItem(boundEbonyBoots, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyCuirass, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyGauntlets, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyHelmet, 1, true)
	Game.GetPlayer().RemoveItem(BoundEbonySword, 1, true)
	Game.GetPlayer().RemoveItem(BoundEbonyShield, 1, true)
	Game.GetPlayer().EquipItem(ClothesBeggarRobes, 1, true)
	Game.GetPlayer().EquipItem(ClothesBeggarBoots, 1, true)
endif

EndEvent

 

Is there a way I cold alter this to allow the player to automatically reequip his previous gear at spell end or even just stop him from being in the buff in the middle of skyrim with all that snow?

Link to comment
Share on other sites

You really should read the CK wiki to understand what each of the functions does.

 

Game.GetPlayer().EquipItem(ClothesBeggarRobes, 1, true)
Game.GetPlayer().EquipItem(ClothesBeggarBoots, 1, true) 

 

^^ the 1 in EquipItem function prevents that item from being removed after it is equipped. It should be:

 

Game.GetPlayer().EquipItem(ClothesBeggarRobes, false, true)
Game.GetPlayer().EquipItem(ClothesBeggarBoots, false, true) 

Edited by steve40
Link to comment
Share on other sites

  • Recently Browsing   0 members

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