I made a post on the issues I am having to get my Duel Wielding mod to work in OpenMW. With more research it will appear OpenMW has some issues when dealing with local variables. I made a simple mod here which has this script that I put on the "iron longsword" weapon.
Code: Select all
begin localvariabletestscript
short mylocalvariable
short onpcequip
if ( onpcequip == 1 )
set mylocalvariable to 1
else
set mylocalvariable to 0
endif
if ( mylocalvariable == 1 )
messagebox, "hello world"
endif
end
This script will spam the message "hello world" when you have a Iron Longsword equipped. This simple mod works in the original Morrowind engine but in OpenMW, if you have 2 or more Iron Longswords in your inventory and you equip one of the Iron Longsword, it will continue to spam the "hello world" message after you unequip the Iron Longsword.
To use this demo ESP file, add iron longsword to your inventory with
player->additem "iron longsword" 1