over 7 years

hey lucy i think it's time emjack dies and we add some of its more convenient features to epicmafia itself so i made this bundle of 3 independent features you can throw anywhere in mafia_game.js and i can port over some of the more complex features if you're interested

https://pastebin.com/raw/94LrHSN1

i agree
14 signed
i support this and more importantly i'll sign anything
over 7 years
preserve tooltip on mouseover (common.js) untested

https://pastebin.com/raw/Yca8pg8P

alphabetize closed role list i think (mafia_game.js)

https://pastebin.com/raw/jtYX4qPi
over 7 years
i can make a script to order roles alphabetically and make role lists toggle so you can mouseover those icons for their names and descriptions with the last script i posted
over 7 years
Hey uhh, this may be hard to do... but would it be possible to make it so closed roles games list the roles in Alphabetical order? Or at least SOME kind of order?

I want to be able to check if something is in the setup without having to comb through every single icon trying to find out where leader gets placed on the list.
over 7 years
Omg what was added
over 7 years
He finally added it! Thanks cub and lucid ^_^
over 7 years
Your auto-tagging outs clowns.
over 7 years

admin says

did you write emjack cub? code looks great!


yes lucy i thought you knew already
over 7 years

admin says

code looks great!


this is lucid trying to flirt btw
over 7 years
did you write emjack cub? code looks great!
over 7 years

cub says

this goes in common.js

you can probably reimplement it more effectively natively but this works independently to convert roleimgs (e.g. userlist and open setup roles) to tooltips with associated roleids

if you use this implementation it also has to be hoisted above the tooltip mouse event otherwise you have to mouseover twice to see it

https://pastebin.com/raw/g2PsD8DG




awesome!
over 7 yearsedited
this goes in common.js

you can probably reimplement it more effectively natively but this works independently to convert roleimgs (e.g. userlist and open setup roles) to tooltips with associated roleids

if you use this implementation it also has to be hoisted above the tooltip mouse event otherwise you have to mouseover twice to see it

https://pastebin.com/raw/g2PsD8DG

over 7 years
https://greasyfork.org/en/scripts/4503-emjack/code

Around line 956 it is the code for the /role fuction, which would be very handy. Would allow users to discretely look up roles.
over 7 years

shayneismyname says


cub says

expose user's role description n1 (or when their role changes) in chat, to help new (and old) users with unfamiliar roles

https://pastebin.com/raw/7BicDp9Q

can't test it since it's integrated but it should work fine


Thank you so much!! Been wanting this forever <3


ohh, i should totally add this into the main script, thanks!


cub says

i also added some common terms to vocabs

i don't know what it looks like where you store it but here's some json

https://pastebin.com/raw/UuV79Kb0


also need to make vocab editable for mods
over 7 years
i also added some common terms to vocabs

i don't know what it looks like where you store it but here's some json

https://pastebin.com/raw/UuV79Kb0
over 7 years
automatically select role icons for meeting members of role-exclusive meetings, e.g. mafia, mason, templar, cultist, zombie, etc.

https://pastebin.com/raw/4rc1irRg

also untested but should work fine
over 7 years

cub says

expose user's role description n1 (or when their role changes) in chat, to help new (and old) users with unfamiliar roles

https://pastebin.com/raw/7BicDp9Q

can't test it since it's integrated but it should work fine


Thank you so much!! Been wanting this forever <3
over 7 years
expose user's role description n1 (or when their role changes) in chat, to help new (and old) users with unfamiliar roles

https://pastebin.com/raw/7BicDp9Q

can't test it since it's integrated but it should work fine
over 7 years

admin says

i added the first two! the last one i can't add because i remember there were security issues with presenting links in-game


i've been using emjack with clickable links in-game for YEARS now and have never had any issues with security. is it a security issue or an advertiser issue?


cub says

chat only focuses when typing in ranked ?


yes. it wasn't this way yesterday either
over 7 years
chat only focuses when typing in ranked ?
over 7 years

cub says

if you agree, lucid, i can update the fake report script with all the new messages and send you a copy that's integrated with the current source


i have a semi-updated list here from my own script (it's better than your original one): https://pastebin.com/vMWbgqiX
over 7 yearsedited
over 7 years
over 7 yearsedited
over 7 years
I am excited to see what admin has in store for us setup-wise
over 7 years
If the mafia meeting is anonymous and a guiser uses their role ability, their chatbox will disappear the next night— as if they had vegged. If you could fix that, I’d be grateful...