em features

cubover 7 years ago

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

Petition
i agree
14 signed
i support this and more importantly i'll sign anything
cubover 7 years ago
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
cubover 7 years ago
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
ookamiover 7 years ago
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.
shayneismynameover 7 years ago
Omg what was added
luis4rodover 7 years ago
He finally added it! Thanks cub and lucid ^_^
1
shayneismynameover 7 years ago
Your auto-tagging outs clowns.
cubover 7 years ago
admin
did you write emjack cub? code looks great!
yes lucy i thought you knew already
1
Promiseover 7 years ago
admin
code looks great!
this is lucid trying to flirt btw
6
adminover 7 years ago
did you write emjack cub? code looks great!
6
adminover 7 years ago
cub
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!
2
cubover 7 years agoedited
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

1
shayneismynameover 7 years ago
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.
adminover 7 years ago
shayneismyname
cub
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
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
1
cubover 7 years ago
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
cubover 7 years ago
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
shayneismynameover 7 years ago
cub
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
cubover 7 years ago
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
1
PrinceAltoidover 7 years ago
admin
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
chat only focuses when typing in ranked ?
yes. it wasn't this way yesterday either
cubover 7 years ago
chat only focuses when typing in ranked ?
Shwartz99over 7 years ago
cub
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
cubover 7 years agoedited
cubover 7 years ago
cubover 7 years agoedited
vom53over 7 years ago
I am excited to see what admin has in store for us setup-wise
Disguiserover 7 years ago
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...