Topic category: Help with modding (Java Edition)
I create a reputation system and save the data about player's relations with fractions using PLAYER_PRESISTENT variables (int variables with relation level (0 - neutral; > 0 - positive; < 0 - negative)). And I have a problem with mob AI. I want to create system: mob looking at player, cheking relations with a certain fraction and attack (if relation level is negative) or don't react (neutral or positive) on this player. But the condition on attack node calling from mob and can't check certain player variable. How can I do this?
I can make relation variable global for world, but there will be a problem on server in the future, becouse all the players will affect on reputation (every fraction will react on all players the same way).
Have someone ideas, how to do this?