Grantiz Posted August 25, 2013 Share Posted August 25, 2013 So with my mod Smelter Options - Take It! I would really like it if I could add the arcane smithing perk to breaking down items. So if you have a daedric armor with an enchantment you wouldn't be able to break it down unless you have arcane smithing. So far I can't seem to get the skse command GetEnchantment() to work.I just get the "GetEnchantment is not a function or does not exist" I have installed SKSE correctly because other such command work fine. So far the script kind of looks like this: Event OnItemAdd Enchantment Enchant = akBaseItem.GetEnchantment()End EventI don't know what I'm doing wrong. Link to comment Share on other sites More sharing options...
Grantiz Posted October 29, 2013 Author Share Posted October 29, 2013 bump Link to comment Share on other sites More sharing options...
Pevey Posted October 29, 2013 Share Posted October 29, 2013 Try typecasting akBaseItem as either armor or weapon. GetEnchantment only exists on those two forms. Edit: Yeah, just tested it. It definitely works if you typecast to the appropriate form. Link to comment Share on other sites More sharing options...
Grantiz Posted May 2, 2014 Author Share Posted May 2, 2014 Can you show me how you typecasted it? Update: got it so I used the line Enchantment Variable = (akBaseItem As Armor).GetEnchantment() Link to comment Share on other sites More sharing options...
Recommended Posts