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

[REQUEST] System to make item shops easier #117

Open
liana-p opened this issue Jul 6, 2023 · 0 comments
Open

[REQUEST] System to make item shops easier #117

liana-p opened this issue Jul 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@liana-p
Copy link
Owner

liana-p commented Jul 6, 2023

Is your feature request related to a problem? Please describe.
Buying items is a common need in games with items.

Doing so involves creating choice menus with conditions and checking currency/removing cost etc, which is a lot of manual work. Would be nice to have an engine feature for this.

Describe the solution you'd like
Shops could be defined in yaml files that would list available items, price, and which currency they use (from hud stats that can be used as currency).
Then creating a shop could be an option in choice instructions to use the shop and populate the choice menu with the items in the shop

More complex use cases might want to manually add/delete items from shops though, so maybe the shop should take an array of items, and it's up to the game to either load that from a yaml file, or generate it dynamically.

Then shops could show options to purchase item with name/icon of the item, cost, greyed choice if not enough money etc, and automatically handle taking the money and adding the item

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@liana-p liana-p added the enhancement New feature or request label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant