Jump to content

Question about MiscItem OnEquipped event


jon2023

Recommended Posts

I made a simple mod https://www.nexusmods.com/skyrimspecialedition/mods/142818 ,which uses MiscItem OnEquipped event to use items. 

At first, I let all items share the same script, and found that sometimes when item A is used, the data obtained in the property is item B. I thought it was because of the use of the same script, so I created a script for each item.

Then I found that this problem still occurs. I let each script file output its own name in OnEquipped, and found that sometimes the script called when item A is used is also item B. I can no longer understand why this happens.

In the end, I can only check the player's inventory in the script. No matter which one is called, if the inventory is insufficient, tell the player to try to discard the item and pick it up again. I feel that my MOD is a complete failure.

The mod URL includes the source code of the mod. The items of the mod are put into some containers through levellist. Then some items obtained from the container have problems when used.
The items I manually added through console player.additem are all correct.

Edited by jon2023
Fix mod url
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...