aedenthorn / ValheimMods

Other
148 stars 105 forks source link

[Suggestion] Action Requirement Check Integration with ASharpPen's Enhanced Progress Tracker's Player and Tribe Global Keys #49

Open BraniyaKz opened 3 years ago

BraniyaKz commented 3 years ago

I've only just begun checking the interactions between these two mods, but my plan is to make certain things required by the player, and others required by the tribe, both in a general sense.

So, instead of Pickaxe:KILLED_NECK:Player:Noodle, something like Pickaxe:KILLED_NECK:Player, which would independantly check for Noodle, or Bob, or Mac, etc.

For teleporting, my idea was: Instead of KILLED_EIKTHYR:Tribe:NoodlesTribe, it would be KILLED_EIKTHYR:Tribe and automatically check to see which tribe the teleporting player belongs to.

ASharpPen posted on the mod page:

Mod integrating/depending on EPT: Generally any mod that uses global keys, and is not running server-side, will have to make no changes to be able to use the enhanced keys.

If in need of the individual/tribal keys while server-side, a dependency will be required.

EPT has an extension class for ZoneSystem that allows for checking global keys, with more parameters added to the key check. Eg. ZoneSystem.instance.HasGlobalKey(Player.m_localPlayer, "defeated_bonemass");