Hello there fellow modders, I am currently having some trouble improving one of my mods on the Steam Workshop.
The mod in question allows you to use any type of War Axe or Battleaxe to chop wood at a Wood Chopping station. To achieve this i just added every type of 'Axe' weapon to the 'woodChoppingAxes' FormList.
This works fine for vanilla Skyrim, to work with the DLCs I had to make separate mods, that for instance, included all vanilla axes and all Dawnguard axes. I made a Dawnguard version and a Dragonborn version, however they override each other.
I could solve this by making a complete version for people who own both of these DLCs, but what I would rather do if possible, is just check if the player has an item marked with the 'WeapTypeWaraxe' or 'WeapTypeBattleaxe' Keyword. This would allow for there to be just 1 version of the mod that works whether you have DLCs or not.
~~~What I have tried~~~
I have tried editing the script 'resourcefurniturescript' by adding this line:
if (Game.GetPlayer().GetItemCount(WeapTypeWaraxe) >= 1)
but it did not work.
I also tried adding the 'WeapTypeWaraxe' Keyword to the FormList, but this also does not work.
~~~~~~~~~~~~~~~~~~~~
I am a relatively new modder, but I can navigate around the CK and edit cells and items. I am also a Computer Science College Student, so I understand how code works, but am still learning Papyrus.
Sorry for the long post, I am hoping someone here can help me solve this trivial matter.