Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NWNX_Player_UpdateCharacterSheet() #769

Open
pyro7r34d opened this issue Jul 9, 2024 · 2 comments
Open

Add NWNX_Player_UpdateCharacterSheet() #769

pyro7r34d opened this issue Jul 9, 2024 · 2 comments

Comments

@pyro7r34d
Copy link
Contributor

Add NWNX_Player_UpdateCharacterSheet()

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

@zeroark
Copy link

zeroark commented Aug 17, 2024

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
Copy link
Contributor Author

pyro7r34d commented Aug 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants