mcd8604 / wowmessagebarker

GNU Affero General Public License v3.0
2 stars 3 forks source link

Message groups with a randomizer #27

Open Road-block opened 4 months ago

Road-block commented 4 months ago

This is an enhancement request.

My main usage for this addon would be to replace recruitment ad snippets. At the moment I am using in-game notepads with the ability to run Lua snippets. A typical construct I would use is have a couple or three variations in an array and use local msg = msgArray[random(1,#msgArray)] before sending.

So what this would entail is moving the text content of the message object 1 level in and have the addon randomize the output. Or as a further refinement assign weights to each message so the "business" message goes out 70% of the time and the "humor" 30%.

Anyway that's one use case for pitching my enhancement idea 😄

TL;DR: Text content of the message object moved one level deep into an array to make message permutations possible.

Road-block commented 4 months ago

I can try pitch it as a pull request if that helps.