Search found 547 matches

by demonnic
Sat Jul 13, 2019 7:21 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: function to easily align text for display (actually, 4 now)
Replies: 30
Views: 10211

Re: function to easily align text for display (actually, 4 now)

PLEASE SEE viewtopic.php?f=6&t=22763 for the most up to date version of this. I won't be updating the code this topic points to any more.
by demonnic
Sat Jul 13, 2019 7:20 pm
Forum: Scripts & Packages
Topic: fText(), the next iteration of align()
Replies: 0
Views: 35

fText(), the next iteration of align()

Some of you may be familiar with this thing I made a while back for formatting text. I named it 'align' and wrote it completely in the global namespace which, looking back, I regret. Someone recently asked about some updates to it, and I looked over the code, and I was embarrassed. So I rewrote the ...
by demonnic
Wed Jul 10, 2019 12:20 am
Forum: Scripts & Packages
Topic: getValueAt, a tool for configuration
Replies: 0
Views: 51

getValueAt, a tool for configuration

getValueAt(variableNameAsString) This will return the same value as if you had read the variable itself. For instance, getValueAt("demonnic.chat.config.enabled") would be the same as referencing demonnic.chat.config.enabled directly "Why do this?", I hear you asking. I dunno how many other people ma...
by demonnic
Sat Jul 06, 2019 3:25 pm
Forum: Help Forum
Topic: Can`t Install
Replies: 6
Views: 186

Re: Can`t Install

Dargor, I edited your initial post to remove your name from the paths. I won't do it in the future but I wasn't sure if you were aware it was in there and wanted to give you the option moving forward.
by demonnic
Sat Jul 06, 2019 3:16 pm
Forum: Help Forum
Topic: Help with a random save timer
Replies: 3
Views: 117

Re: Help with a random save timer

Happy to help! If you have any more questions, feel free to respond here. Or you can join us on Discord, you'll generally get a faster answer that way =)
by demonnic
Fri Jul 05, 2019 4:27 pm
Forum: Help Forum
Topic: Help with a random save timer
Replies: 3
Views: 117

Re: Help with a random save timer

mySongs = { "There once was a lad from Redania", "Hey diddle diddle, the cow ate my fiddle and this song no longer makes sense", "Once upon a midnight dreary while I pondered hale and hearty", "Something else because why not?" } songToPlay = mySongs[math.random(#mySongs)] send(songToPlay) This won'...
by demonnic
Sun Jun 16, 2019 4:26 pm
Forum: Help Forum
Topic: Muli-letter Alias - each letter relevant
Replies: 3
Views: 172

Re: Muli-letter Alias - each letter relevant

Happy to help!
by demonnic
Sun Jun 16, 2019 2:37 am
Forum: Help Forum
Topic: Muli-letter Alias - each letter relevant
Replies: 3
Views: 172

Re: Muli-letter Alias - each letter relevant

^DW(\w)(\w)(\w)(\w)

so long as you always have 4 characters after the DW the above regex should work.
by demonnic
Sun Jun 16, 2019 12:35 am
Forum: Scripts & Packages
Topic: Convert arbitrary string to color consistently
Replies: 3
Views: 174

Re: Convert arbitrary string to color consistently

Ok, I updated the xml and code in the original post with the fix. I now take the string which is fed in and munge it up a bit. I break it into even and odd parts, then reverse the even part, add the odd part onto the end, and use the new string to generate the random seed. This is because it was fou...
by demonnic
Sat Jun 15, 2019 7:33 pm
Forum: Scripts & Packages
Topic: Convert arbitrary string to color consistently
Replies: 3
Views: 174

Re: Convert arbitrary string to color consistently

A flaw has been discovered with used on OSX where anything over 7 characters generates the same colour. I'll have the fix posted a little later