Jump to content

Need some help with a weapon...


StyleEvolves

Recommended Posts

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

Begin OnEquip

player.setscale 1.5

end

 

Begin OnUnEquip

player.setscale 0.666666666

;Not sure about my math there, nor if that is the percentage to set it back to one

end

 

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

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 limitations

http://cs.elderscrolls.com/constwiki/index.php/SetScale

Link to comment
Share on other sites

  • Recently Browsing   0 members

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