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

Allow custom music to be set for battles #2303

Open
Qiangong2 opened this issue Mar 24, 2024 · 1 comment
Open

Allow custom music to be set for battles #2303

Qiangong2 opened this issue Mar 24, 2024 · 1 comment

Comments

@Qiangong2
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently (unless I'm missing something), you are unable to set custom battle music. Ideally you'd be able to set custom battle music so that boss fights for example have a different feel.

Describe the solution you'd like
The ability to set custom battle music. Maybe as an extra variable for start_battle?

@JaskRendix
Copy link
Collaborator

JaskRendix commented Mar 26, 2024

You can create a new environment in mods/tuxemon/db/environment/ (eg. boss.json, slug = boss, etc.)

eg. https://github.com/Tuxemon/Tuxemon/blob/development/mods/tuxemon/db/environment/grass.json

so you can alter different pieces of the battle scenario (music included: "battle_music": "music_battle_loop"), then you just need to set the variable with:

<property name="act1" value="set_variable environment:boss"/>

but an extra variable in start_battle could be useful

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