Hopefully simple scripting question involving a Quest Result

Post » Tue Mar 26, 2013 3:45 am

Ok, I'm planning a mod that changes the Kvatch Cuirass you get from Savilan Matius upon completing the Battle for Castle Kvatch. Changing the armor itself and its enchantments are easy, I can do that in my sleep at this point.

However, I want to make it so that the type of armor it is depends on whether the character's Light or Heavy armor skill is higher.

My question is, will this scripting work in the Result Script box for the appropriate topic, or do I have to make an actual script and call it separately?

Here is what it is now:

player.removeitem coloviansignetring 1additem coloviansignetring 1removeitem townguardcuirasskv 1player.additem MS49RewardCuirassList 1SetStage MS49 100

I want to change it to something like this:

player.removeitem coloviansignetring 1additem coloviansignetring 1if player.getav lightarmor &--#62; player.getav heavyarmor	   	 player.additem MS49RewardCuirassList 1else		   player.additem MS49RewardCuirassListHeavy 1endifSetStage MS49 100

Is this corret? Or is there another/better way of doing this?
User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Return to IV - Oblivion