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

Check requirement conditions directly in Brawl #70

Open
tinybike opened this issue Dec 31, 2024 · 2 comments
Open

Check requirement conditions directly in Brawl #70

tinybike opened this issue Dec 31, 2024 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@tinybike
Copy link
Owner

e.g. data file requirement conditions will be something like

data "RequirementConditions" "CanUseWeaponActions() and IsProficientWithEquippedWeapon()"

but these functions are KHN functions which we don't have access to in SE at all. In SE you can do e.g.

Ext.Stats.Get("Rush_Charger_Attack").RequirementConditions

which is a string "CanUseWeaponActions() and IsProficientWithEquippedWeapon()". For any given req it's possible to cobble together some way of checking it in Osi or SE. But instead of doing it piecemeal it'd be really nice to just gather up all the relevant khn functions and convert them to an SE library. I think this should be possible? Khn isn't quite Lua but it's pretty freakin close.

@tinybike tinybike added the enhancement New feature or request label Dec 31, 2024
@tinybike
Copy link
Owner Author

Probably not exhaustive but norb's search engine is a good starting point for khn scripts, e.g. https://bg3.norbyte.dev/search?q=type%3Akhn

@tinybike
Copy link
Owner Author

tinybike commented Jan 5, 2025

Some manual checks added in a122718 but def not exhaustive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant