Script on weaponsarmor addons?

Post » Wed Jun 20, 2012 2:04 pm

I have a cool idea for weapons and armor addons...but I'm not sure how to go about adding scripts to recognize weapons...is it still possible to add scripted effects to weapons in the CK?
User avatar
Rachel Eloise Getoutofmyface
 
Posts: 3445
Joined: Mon Oct 09, 2006 5:20 pm

Post » Wed Jun 20, 2012 8:06 pm

what kind of scripted effects?

scripts on gear can be done, but with limited use. you can also try using magic effects via enchantment/perk etc
User avatar
Pixie
 
Posts: 3430
Joined: Sat Oct 07, 2006 4:50 am

Post » Thu Jun 21, 2012 12:38 am

what kind of scripted effects?

scripts on gear can be done, but with limited use. you can also try using magic effects via enchantment/perk etc

Well I want when the character equips a particular weapon, they equip another piece of armor at the same time. Once they unequip the weapon they just equipped, they equip a different piece of armor at the same time.

For example, if they're wearing a cape, and they go into battle, they'll pull out their sword and shield, and unequip their cape. When the battle is over, they'll reequip the cape, and unequip the weapon they were just using.
User avatar
JLG
 
Posts: 3364
Joined: Fri Oct 19, 2007 7:42 pm

Post » Wed Jun 20, 2012 9:36 pm

i actually wrote a script that does exactly this (weapon draw = armor equip, etc).

the problem is that OnEquip and OnUnequip does not work properly. there is a bad glitch where when a user uses hotkeys or favorites, these events never fire, and unless you have a while loop or update() polling to synchronize them back together, it is possible that the weapon equip and cape equip will be forever out of synch.

long story short, there is no easy way around the glitch that i know of. i can give you my script if you still want it, then maybe you can pick it part and think of a better way
User avatar
Dark Mogul
 
Posts: 3438
Joined: Tue Feb 20, 2007 11:51 am

Post » Wed Jun 20, 2012 1:21 pm

i actually wrote a script that does exactly this (weapon draw = armor equip, etc).

the problem is that OnEquip and OnUnequip does not work properly. there is a bad glitch where when a user uses hotkeys or favorites, these events never fire, and unless you have a while loop or update() polling to synchronize them back together, it is possible that the weapon equip and cape equip will be forever out of synch.

long story short, there is no easy way around the glitch that i know of. i can give you my script if you still want it, then maybe you can pick it part and think of a better way

Sure I'll send you a pm about what exactly I'm planning to do, and maybe we can figure out some kind of workaround. 1 sec.
User avatar
Rob
 
Posts: 3448
Joined: Fri Jul 13, 2007 12:26 am


Return to V - Skyrim