
I have a mod ship that I want to only use specific mod weapons, while treating all other installs as in vanilla (so armor restricted by mass, etc.). All the mod weapons have the modifier TDI, so I thought I could accomplish this by doing:
Code: Select all
<Events>
<CanInstallItem>
(block nil
(if
(or
(not(eq (itmGetCategory gItem) 4))
(itmHasAttribute(gItem) "TDI")
)
(setq return True)
(setq return "The Slasher-class only supports TDI weaponry.")
)
)
return
</CanInstallItem>
</Events>
This is a relatively recent addition and I can't find any instances of it in github or xelerus, does anyone have experience with it and can point me in the right direction please? Or, is there another way to get at this functionality?