#(aviside) how to make a data list rotate between lines instead of randomly select?

15 messages · Page 1 of 1 (latest)

pseudo burrow
#

I have a script that narrates in chat randomly, but I want it to rotate dialogue. As in, find new lines to say, avoid repeating previously spoken lines. Is this hard to do? how would I do it?

tropic bayBOT
#

(aviside) how to make a data list rotate between lines instead of randomly select?

tropic bayBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

manic hawk
#

multiple ways to approach this

#

the one i think is the easiest is probably make main list of dialogues
lets say list [hi, hello, sup]

#

then create a copy of this list

#

and choose random entry from that copy and remvoe it

#

once the list is empty refill the copy from original

#

or could map dialogue to times of it being used

#

and always choose the one with least usage

#

if equal choose randomly

opaque solar
#

I'd probably just store all the options in a data script, then load them with a .random[999] on startup and interate through the list directly, reloading when index is the size of the list

main coveBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@pseudo burrow