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

Hacky random tiles #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

strellydev
Copy link

Disclaimer: This is NOT an actual pull request, as in, I don't want this code to be merged, because the code is in no way in a mergeable state.

However, I was using the addon and was in the need of a tile randomizer to make my life easier, so I decided to implement it on my own up to the point where I needed it to be, and since I saw that your plans for development include tile randomizer I decided to share the code I wrote with you.

The code works with groups of tiles selected from the tileset, or with patterns saved in the patterns tab.

You can activate it or deactivate it with the "dice" button in the context menu, and the scatter value does nothing right now.

I also introduced an "allow tiles to repeat" flag that, when false, makes it so the same tile can't be chosen twice in a row.

This flag is false by default and there's no way to change it in the GUI right now, if you want to set it to true you'd need to modify the addon code.

I hope the code is of help if/when you decide to work on the tile randomizer yourself.

Thanks a lot for the addon!

@nklbdev
Copy link
Owner

nklbdev commented Apr 13, 2024

It's so great that someone still has interest in this addon!
However, I myself no longer have the opportunity to do it. I'm too busy with my job and personal life. If you want to promote your fork, I will be only too glad!

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

Successfully merging this pull request may close these issues.

None yet

2 participants