Jump to content

Simple script help- Equipping Armor


SignedName

Recommended Posts

So I'm a total noob at scripting, but I want to script an effect so that a piece of armor (CassHair) will be equipped/unequipped along with another piece of armor (CassHat). How do I go about this? This is what I tried, but the script doesn't save. What am I doing wrong here?

scn CassHatScript

Begin OnEquip RoseofSharonCassidy
	RoseofSharonCassidy.EquipItem CassHair
end

Begin OnUnequip RoseofSharonCassidy
	RoseofSharonCassidy.UnequipItem CassHair
end

Edit: Okay, so I found out the problem (had to stick REF at the end of Cassidy), but the CassHair doesn't unequip when I take her hat away. Any ideas as to that?

Edited by SignedName
Link to comment
Share on other sites

I'm pretty sure you're calling on Cass's base form instead of her reference. The script will need her refID.

 

You should also look into GECK powerup. I don't have a link offhand, but it's on Nexus somewhere and among other things will give you reasons why if a script fails to compile.

 

Edit - Actually,look into GECK extender:

 

https://www.nexusmods.com/newvegas/mods/64888

 

It's newer and better than GECK power up. I forgot that i switched over to it myself.

Edited by uhmattbravo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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