I have a script attached to my player alias. The intent is to do something I equip a weapon made of silver, and to do something else if it is not. Here's the script sample:
Scriptname PlayerAliasScript_Main extends ReferenceAlias
Keyword Property WeapMaterialSilver auto
Event OnObjectEquipped(Form akBaseItem, ObjectReference akReference)
if akBaseItem as Weapon
if akBaseItem.HasKeyword(WeapMaterialSilver)
Debug.Notification("Is Silver")
else
Debug.Notification("Is Not Silver")
endIf
else
; Do nothing for now
endIf
endEvent
Scripts all compile with 0 errors. When I run the game, no matter what weapon I equip, the "Is Not Silver" notification pops up even if I know the weapon I equipped has that keyword. What am I missing? Thanks.