Jump to content

New Varla and Welkynd stones


Recommended Posts

Nevermind...I can do it with Wrye Bash. :blush: Thank you very much for your help.

 

Have a kudo. :)

Edited by AurianaValoria1
Link to comment
Share on other sites

Hmm...is there a way to modify the script some? I'd like to take into account if the player already has max magicka or if the player's items are already all charged up - with appropriate messages.

 

And would it be possible to add the typical sound, too?

Link to comment
Share on other sites

scriptname WelkyndStoneScript

Begin OnEquip

if (Player.GetAV Magicka < Player.GetBaseAV Magicka)
	Player.ModAV2 Magicka 10000
	Message "You have used a Welkynd Stone's power to restore your magicka, and now it is gone."
	PlaySound ITMWelkyndStoneUse
	RemoveMe
else
	Message "Your magicka is already full."
endif

End

 

scriptname VarlaStoneScript

ref container
ref item
ref base

short max
short charge

Begin OnEquip

let container := PlayerRef
ForEach (item <- container)
	let base := item.GetBaseObject
	let max := GetObjectCharge base
	if (item.GetCurrentCharge < max)
		item.SetCurrentCharge max
		let charge := 1
	endif
loop

if (charge == 1)
	Message "You have used a Varla Stone's power to restore your enchanted items charge, and now it is gone."
	PlaySound ITMWelkyndStoneUse
	RemoveMe
else
	Message "Your equipment is fully charged."
endif

End

 

I don't know if that's the correct sound. If it's not, you'll have to look for it yourself. All the sounds in the game should be listed under Misc > Sound in the CS.

Link to comment
Share on other sites

  • 1 year later...

scriptname WelkyndStoneScript

Begin OnEquip

if (Player.GetAV Magicka < Player.GetBaseAV Magicka)
	Player.ModAV2 Magicka 10000
	Message "You have used a Welkynd Stone's power to restore your magicka, and now it is gone."
	PlaySound ITMWelkyndStoneUse
	RemoveMe
else
	Message "Your magicka is already full."
endif

End

 

scriptname VarlaStoneScript

ref container
ref item
ref base

short max
short charge

Begin OnEquip

let container := PlayerRef
ForEach (item <- container)
	let base := item.GetBaseObject
	let max := GetObjectCharge base
	if (item.GetCurrentCharge < max)
		item.SetCurrentCharge max
		let charge := 1
	endif
loop

if (charge == 1)
	Message "You have used a Varla Stone's power to restore your enchanted items charge, and now it is gone."
	PlaySound ITMWelkyndStoneUse
	RemoveMe
else
	Message "Your equipment is fully charged."
endif

End

 

I don't know if that's the correct sound. If it's not, you'll have to look for it yourself. All the sounds in the game should be listed under Misc > Sound in the CS.

 

Do you mind me using these scripts in a mod? Obviously credit will be given

Link to comment
Share on other sites

  • Recently Browsing   0 members

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