littlesera / LSCG

GNU General Public License v3.0
14 stars 13 forks source link

Multiple suggestions being triggered by same message and/or same word/phrase. #542

Open Shiranui-Izayoi opened 2 months ago

Shiranui-Izayoi commented 2 months ago

So not sure how easy this would be as I don't know how the code is currently set up. So hopefully this isn't a really annoying thing to potentially implement.

But I was wondering if it would be possible to have it so multiple suggestions can be triggered by the same message. And/or have multiple suggestions triggered by the same word/phrase.

For the first part multiple suggestions in 1 message I just thought it would be nice to have as then you can combine effects.

As for the second part, it was mostly because I tried to create a "linked" suggestion due to only having 3 options per suggestion. So in my case I had suggestion 1 with denial, insatiable and pose while suggestion 2 was action, action and speak phrase. To create a more complicated suggestion for more freedom.

Anyway I grouped them together into 1 issue as I think that making 1 work will also make the other work. As if I had to guess how the code is working despite not being able to find it is.When a message is recieved (assuming suggestions are allowed and sender is valid). It then goes down the list of suggestions and compares their trigger word to the message. Once it finds a match it exits the function and triggers the effect ignoring the rest of the suggestions in the list.

So if my thought on how it is working is correct. If it instead continued on checking the other triggers. It would solve both parts at the same time. As it would allow a message to trigger multiple and also allow suggestions to share trigger words for combined effects.

The only potential issue I could see with this is that it might send to many requests causing a disconnect. But I am not sure if that would be the case.

littlesera commented 1 month ago

A little tricky in that multiple suggestions could be implanted by different people and have different resist difficulties. Wouldn't want to collapse them all into one resist minigame really... and having a series of minigames for each one feels awkward and tricky to sequence, especially looking to actual sequenced suggestion instructions... Will need more thinking!