Jump to content

Some Script help!


Recommended Posts

Hitting a hard wall with my limited scripting knowledge.

What I'm trying to do is 2 lesser powers, one saves your current offhand, the other one equips it. It's a pretty crude way, I know, but I find the lack of any dual wield hotkeying mod sad.

Some help from some script guru (It's ok you can answer even if you are not a script guru :P) would be awesome.

 

Scriptname weaponequipscript extends activemagiceffect 

weapon property offhand auto

 

Event OnEffectStart ( actor akactor, Actor akCaster )

Game.GetPlayer().EquipItemEx((offhand as Form), 2, false, false)

endevent

 

 

 

 

Scriptname weaponsavescript extends activemagiceffect 

weapon property offhand auto

weaponequipscript Property EquipWeapon auto

 

Event OnEffectStart ( actor akactor, Actor akCaster )

offhand=Game.GetPlayer().GetEquippedWeapon(true)

equipweapon.offhand = offhand

Debug.Trace("Offhand = "+(Offhand as Form).GetName())

endevent

 

 

 

Thanks in advance :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.