nwn-dotnet / Anvil

A Neverwinter Nights Server API
https://nwn-dotnet.github.io/Anvil
MIT License
23 stars 9 forks source link

Add NWNX_Player_UpdateCharacterSheet() #769

Open pyro7r34d opened 2 months ago

pyro7r34d commented 2 months ago

Add NWNX_Player_UpdateCharacterSheet()

https://nwnxee.github.io/unified/group__player.html#gafb04b90a564b8dff198383b341e495a5

zeroark commented 1 month ago

Can you specify your use case? It looks like this is as simple as adding a reference to the NWN.Core package to your code, and then adding the following line to wherever you want to call that function:

PlayerPlugin.UpdateCharacterSheet(playerId);
pyro7r34d commented 4 weeks ago

Can you specify your use case? It looks like this is as simple as adding a reference to the NWN.Core package to your code, and then adding the following line to wherever you want to call that function:

PlayerPlugin.UpdateCharacterSheet(playerId);

My need to call it is when I'm doing AddOneHalfStrength dynamically in order to have a feat alllow for full strength of the offhand weapon instead of half on equip.

I just mainly try to keep all my code without using nwn.core, and if I do have to use nwn.core I go ahead and put in a request for it to be added and/or add it myself. This one is simple enough I'll probably go ahead and try and add it myself when I have time and do a pr.