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

Random chance PSAs #11

Open
baines opened this issue Feb 27, 2021 · 0 comments
Open

Random chance PSAs #11

baines opened this issue Feb 27, 2021 · 0 comments

Comments

@baines
Copy link
Owner

baines commented Feb 27, 2021

Currently each "PSA" has one response associated with it - !psa+ will simply overwrite anything that existed with the same ID previously.

The PSA system could be extended to support multiple responses for a single ID / set of conditions, either with a new command, or different argument to !psa+.

It will probably need a "chance to occur" parameter too - could just be an integer. Then when executing a PSA, all the chance numbers are summed and a random number generated between 0..sum to pick one of the responses.

This could also be extended to mod_alias - though the syntax of !alias doesn't currently have parameters like !psa+.

I imagine it might be annoying if a PSA/alias with a lot of responses set up accidentally gets overwritten using the original (existing) style of !alias / !psa+, so there should maybe be a confirmation step or specific syntax to prevent this.

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

No branches or pull requests

1 participant