StyleEvolves Posted September 18, 2010 Share Posted September 18, 2010 Yo dawgs. Short story: Currently making a mod. When you equip a weapon, you grow. Long story: I'm making a mod called Deities of Xylaasium, a part of which includes 'legendary items'. One such legendary item, Glorenzyle, makes the wielder grow to x1.5 the size of its original model. I've tried to script this but have been, so far, unsuccessful. I am not a scripter, nor an experienced mod-maker, but I'm hoping that anyone out there who is one of the two, or both, can give me a script to add to an item to do such an effect. Thanks dawgs. Link to comment Share on other sites More sharing options...
ub3rman123 Posted September 19, 2010 Share Posted September 19, 2010 Begin OnEquipplayer.setscale 1.5end Begin OnUnEquipplayer.setscale 0.666666666 ;Not sure about my math there, nor if that is the percentage to set it back to oneend It'll likely need a few more lines of code to either make sure it's the player equipping it or to make it so any NPC grows in size. Link to comment Share on other sites More sharing options...
documn Posted September 19, 2010 Share Posted September 19, 2010 setscale 1 will bring the object back to the original size. You don't need to do the math.If you want the wielder (and not specifically the player) to grow, you can tweak the script a little bit: ref self begin onequip set self to getcontainer self.setscale 1.5 end begin onunequip set self to getcontainer self.setscale 1 end Make sure to check out the notes on the CS wiki's SetScale page. SetScale has some limitationshttp://cs.elderscrolls.com/constwiki/index.php/SetScale Link to comment Share on other sites More sharing options...
ub3rman123 Posted September 19, 2010 Share Posted September 19, 2010 Oh, it's a constant, not a modifier? Edit: For races with special Scales, should you add on a GetScale before the change then SetScale to it instead? Link to comment Share on other sites More sharing options...
Recommended Posts