Jump to content

Best way to handle synergy between items ?


Recommended Posts

Hi,

I have a bat hat in my mod. It would be nice to have some synergy with the bat bat, meaning, if the character equip both, he will have a bonus (don't know what at the moment), that he don't have if he equip only the bat or the hat.

What is the best way to check if he has both items ? If he unequip one of them ?


Thanks :)

Link to comment
Share on other sites

Either put ListenForEvent in onequip and onunequip to give permanent stat boost.

Of put specific ListenForEvent if you want to affect a particular action (more damages with the bat bat for instance). Then inside this ListenForEvent you simply check player.components.inventory:GetEquippedItem(EQUIPSLOTS.HANDS) and EQUIPSLOTS.HEAD and you're good to go.

Edited by ZupaleX
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...