over 5 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 5 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 5 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 5 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 5 years
Omg what was added
over 5 years
He finally added it! Thanks cub and lucid ^_^
over 5 years
Your auto-tagging outs clowns.
over 5 years

admin says

did you write emjack cub? code looks great!


yes lucy i thought you knew already
over 5 years

admin says

code looks great!


this is lucid trying to flirt btw
over 5 years
did you write emjack cub? code looks great!
over 5 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 5 years
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 5 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 5 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 5 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 5 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 5 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 5 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 5 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 5 years
chat only focuses when typing in ranked ?
over 5 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 5 years

admin says

i also think i've come up with the most flexible setup creation system (not coded yet), but let me sketch it out and link you all to an imgur some time next week


can you add a quick host option to title games? i love giving games titles and while em supports it it's unavailable except when creating an entirely new setup or using emjack

you could tack it onto passworded games, with an optional blank password (title only), blank title (password only), or both (or neither to just make it normal i guess)
over 5 years

shayneismyname says

& since we're in sandbox forum i'll point out: copy/pasting is a feature we use a LOT in sandbox. It's part of the game here. Imo instead of making it harder to copy/paste, make it easier to fake claim. Emjack has a handy feature that lets you pull up system messesages.


personally i dont like copypasting reports and i think that's for losers who can't play mafia properly

but since those people will always exist i find providing the ability for everyone to fake report just as quickly and easily as copy/pasting discredits the legitimacy of copypasted reports

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
over 5 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


back in the day you detected links using a regex like /\w+://\S+/ which matched the javascript: "protocol"; i actually exploited that by adding a url encoded linebreak to uncomment and execute js injected through those links

the script here only accepts http links which will only ever link to webpages, and the links are exposed since it doesn't use markup to format so hidden links aren't an issue

it's actually safer than links on the forum which i think can still be used to break threads

the implementation is hacky since i just tacked it onto the vocab system to bypass changing the way messages are parsed but it actually works really well that way
over 5 years
I am excited to see what admin has in store for us setup-wise
over 5 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...