Chat log suggestion?

Suggestions you have for the Trial System go here.

Chat log suggestion?

Postby murat1996 » Wed Jul 27, 2016 9:47 am

Make it so the deaths are shown while reading the chat

Ex: James was killed by [insert kill of role, faction,suicide]
Their role was [insert role of player]

Same with lynches too

Sarah was lynched, their role was [insert role of player]

Just to make slightly easier without reading wills or chat as it can be annoying or missed.
33-40-3 : My FM Record

Hosted: VFM13

My discord is fluffymurat#2318 if you really want it I guess...it's now a legacy name.

My discord is just fluffymurat
User avatar
murat1996
[Forum Mafia X] Winner
[Forum Mafia X] Winner
 
Posts: 2810
Joined: Wed Oct 22, 2014 1:45 pm
Location: Somewhere in New York

Re: Chat log suggestion?

Postby Lexiam » Wed Jul 27, 2016 1:19 pm

this doesnt belong here, it belongs in trial suggestions
Don't mind me, Just watching games and playing anime
Naru2oo8: "please unbannerino"
Naru2008: "Deniederino." - Thread
User avatar
Lexiam
Mayor
Mayor
 
Posts: 827
Joined: Mon Feb 16, 2015 5:18 pm
Location: Watching Anime

Re: Chat log suggestion?

Postby Nellyfox » Wed Jul 27, 2016 1:21 pm

It basically does this already though. Just hover over their name to see their role, or look at the filters as the roles line up with the players.

Moving to the appropriate board, though.
User avatar
Nellyfox
[Forum Mafia V] Winner
[Forum Mafia V] Winner
 
Posts: 9507
Joined: Sat May 10, 2014 12:04 pm
Location: Glass Workstation

Re: Chat log suggestion?

Postby murat1996 » Wed Jul 27, 2016 1:38 pm

Nellyfox wrote:It basically does this already though. Just hover over their name to see their role, or look at the filters as the roles line up with the players.

Moving to the appropriate board, though.


I know that.

It was to make it slightly easier, but its okay
33-40-3 : My FM Record

Hosted: VFM13

My discord is fluffymurat#2318 if you really want it I guess...it's now a legacy name.

My discord is just fluffymurat
User avatar
murat1996
[Forum Mafia X] Winner
[Forum Mafia X] Winner
 
Posts: 2810
Joined: Wed Oct 22, 2014 1:45 pm
Location: Somewhere in New York

Re: Chat log suggestion?

Postby bluewave41 » Fri Jul 29, 2016 12:26 am

It's easy enough to write yourself if you really wanted to do that.

Paste this into your web browser console. Most modern browsers use F12.

Code: Select all
var deaths = document.getElementsByClassName("death"); //every line in which a player died
for(var i = 0; i < deaths.length; i++) { //loop through them all
   deaths[i].innerHTML += " Their role was " + deaths[i].title; //title is their role so tack it onto the end
}


It's not automatic, you have to run it every time a new report is loaded. You could add it into the javascript file that gets run on report load to have it update automatically but I don't know which function that is or what file it's in.

EDIT: To anybody who happens to find this maybe looking for this feature, I've put it together along with a bunch of other cool stuff here: viewtopic.php?f=56&t=51293&p=1692138#p1692138
Last edited by bluewave41 on Wed Sep 14, 2016 10:42 pm, edited 4 times in total.
User avatar
bluewave41
Halloween 2017 Winner
Halloween 2017 Winner
 
Posts: 1139
Joined: Wed Mar 18, 2015 11:37 am

Re: Chat log suggestion?

Postby Jerme » Fri Jul 29, 2016 2:16 am

This seems to be an easy addition for TurdPile if the code is already delivered.
Is also a good QoL change, which I approve of.
Disclaimer: I try to abide by the game's softfilter and use the appropriate replacements, when I am using the forums. Those will be set in brackets. Example: [tarnation]
Visit my role suggestions and give me feedback: http://www.blankmediagames.com/phpbb/viewtopic.php?f=27&t=28949

Visit the Testing Grounds
Occupation: A developers pain and joy (QA-fox), currently "hired" by Ralozey
User avatar
Jerme
Global Moderator
Global Moderator
 
Posts: 28197
Joined: Thu Apr 30, 2015 2:09 pm

Re: Chat log suggestion?

Postby TurdPile » Wed Aug 31, 2016 10:10 am

Naru, please add to master thread. Link to the provided code's post.
I have mostly rescinded my role as Admin.

All previous contact should instead be redirected to Flavorable.

If your inquiry doesn't directly have to do with Trial 2.0 or TrialBot, then please refrain from messaging.

Thank you.
User avatar
TurdPile
Vampire
Vampire
 
Posts: 8900
Joined: Tue Feb 11, 2014 10:25 am
Location: Massachusetts


Return to Trial System Suggestions

Who is online

Users browsing this forum: No registered users and 12 guests