script request or help

Post » Sat Nov 17, 2012 7:11 am

Hi everyone,

I would like to add a script to an item (MG07Keystone). And I would like the script to do the following:
When item is in inventory then the carrier gets 100% resistance to frost. I would like the script to be as simple as possible
How do you suggest I do:
1) does this script already exist in the CK
2) if not can someone help me out?

Thanks guys for your help
User avatar
Hazel Sian ogden
 
Posts: 3425
Joined: Tue Jul 04, 2006 7:10 am

Post » Sat Nov 17, 2012 3:59 am

Fill a ReferenceAlias with it and attach the below to it.
Spoiler
ScriptName YourScript Extends ReferenceAliasBool bModAVActor Property PlayerREF AutoEvent OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)	If bModAV != (akNewContainer == PlayerREF)		bModAV = !bModAV		If bModAV			PlayerREF.ModActorValue("FrostResist", 100)		Else			PlayerREF.ModActorValue("FrostResist", -100)		EndIf	EndIfEndEvent
Should work as intended, but I've not had enough coffee today, so you might wanna double check.
User avatar
Emma Louise Adams
 
Posts: 3527
Joined: Wed Jun 28, 2006 4:15 pm

Post » Fri Nov 16, 2012 8:03 pm

sorry Man just spotted your help...I am trying this tonight and will report...thanks for your help
User avatar
xx_Jess_xx
 
Posts: 3371
Joined: Thu Nov 30, 2006 12:01 pm


Return to V - Skyrim