I'd like to make my little mod Chess Set compatible with ttw_wildwasteland. It partly already is as you get my replacer if you have the trait (my mod initially disables the separate chess set pieces and puts a unified set there instead). But if you use ttw_wildwasteland and don't have the trait, the Chess Set is still there, so I'd like to have it enabled if having the trait.
My guess is that I have to make my placed Chess Set a reference which has Persistent Reference and Initially Disabled checked - and then I must make a quest and a short script which enables the reference if having the trait. But I suck at scripting so not sure how it should look.
Perhaps I could use the TTWPerkWildWasteland quest that is already there? I guess the script should look something like this, but, as said, what I know about scripting isn't worth knowing...:
scn ChessSetWWScript
short doonce
Begin GameMode
if doonce == 0
if player.hasperk WildWasteland
enable.ChessSetREF
endif
set doonce to 1
endif
End
Any help would be appreciated!