Activate should always be allowed for inventory items
Script which works on vanilla doesn't work properly on OpenMW. Attached script does not open the book while equipping it from the menu. (The script itself works)
begin your_script_name
short OnPCEquip
short PCSkipEquip
set PCSkipEquip to 0
; any actions that might end the script must be placed lower than this line
; Activating from the inventory
if ( MenuMode )
set PCSkipEquip to 1
if ( OnPCEquip )
; place actions for when the player opened the book from the inventory here
messagebox "opened in inventory"
set OnPCEquip to 0
set PCSkipEquip to 0
Activate
endif
return
endif
; Activating in the world
if ( OnActivate )
; place actions for when the player opened the book from the world here
messagebox "opened in world"
Activate
endif
end