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
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
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.
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
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?
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)
& 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
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
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...