MadBeardMan
February 16th, 2019, 19:02
Greetings All,
I asked something similar to this a while ago, but never got to the bottom of it. Ideally I need it working now.
When you delete a weapon from the Inventory (in 5E) the Weapon Option is also removed.
In my manager_char.lua I have this script:
--
-- Please see the license.html file included with this distribution for
-- attribution and copyright information.
--
function onInit()
ItemManager.setCustomCharAdd(onCharItemAdd);
ItemManager.setCustomCharRemove(onCharItemDelete);
end
The 'onCharItemAdd' is called when an item is added, however the 'onCharItemDelete' is not called.
Now I think I could add the event manually by looking for item == 6 (from the wheel), but that wouldn't work for a manual delete (ie clicking the remove on the right of the item).
Can anyone point out what's wrong? This is for the Traveller ruleset.
Cheers,
MBM
I asked something similar to this a while ago, but never got to the bottom of it. Ideally I need it working now.
When you delete a weapon from the Inventory (in 5E) the Weapon Option is also removed.
In my manager_char.lua I have this script:
--
-- Please see the license.html file included with this distribution for
-- attribution and copyright information.
--
function onInit()
ItemManager.setCustomCharAdd(onCharItemAdd);
ItemManager.setCustomCharRemove(onCharItemDelete);
end
The 'onCharItemAdd' is called when an item is added, however the 'onCharItemDelete' is not called.
Now I think I could add the event manually by looking for item == 6 (from the wheel), but that wouldn't work for a manual delete (ie clicking the remove on the right of the item).
Can anyone point out what's wrong? This is for the Traveller ruleset.
Cheers,
MBM