Mafia (partial)

Discussion in 'Server and Client Scripting' started by coyotte508, Nov 9, 2010.

  1. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    So I got a script from Jules: http://pastebin.com/6YZcpCYG

    And started scripting a mafia with the same mechanics.

    http://pastebin.archlinux.fr/426115

    This is not finished.

    To-Do list:

    • Using announcement and channels to improve the script
    • Adding Village Idiot? (Wins when voted off)
    I'm not going to work on it anymore, but anyone willing to make changes is welcomed.

    I also have to thank Mystra for some of the style.
     
    Last edited: Dec 20, 2010
  2. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    yw :3
     
  3. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Got it roughly working although more is to do!
     
  4. Gilad

    Gilad ¯\(°_°)/¯

    Joined:
    May 13, 2010
    Messages:
    378
    Likes Received:
    2
    Suggestions:

    Make hooker a bad guy. (lol), if it's hooker vs mafia in the finals, it's endless

    also, make that each ip can join once.
     
  5. B. Rizzo

    B. Rizzo A relic of the past, given new life.

    Joined:
    May 1, 2010
    Messages:
    229
    Likes Received:
    0
    PO Trainer Name:
    B. Rizzo
    I love the mafia script, I knew Jules is awesome. I just wish that i knew how to script.
     
  6. eric the espeon

    eric the espeon is an espeon.

    Joined:
    Apr 21, 2010
    Messages:
    854
    Likes Received:
    1
    Or just make the hooker unable to target the same person twice in a row.
     
  7. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
    But I like using the hooker on the same person over and over until we find out his partner. It works well. Stops both from killing anyone else.
     
  8. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    and if the hooker & inspector know the two other mafias, that doesn't help.
     
  9. Slipperjeans

    Slipperjeans Loose pants

    Joined:
    Jun 27, 2010
    Messages:
    448
    Likes Received:
    0
    a Villager Idiot would remedy the current level of retardment that is the public Mafia Server
     
  10. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Sure. How many persons would this activate with though?
     
  11. champagne papi

    champagne papi if young tokyo tom don't trust you...

    Joined:
    Aug 11, 2010
    Messages:
    586
    Likes Received:
    246
    I see Mafia server is offline :/ So now my server supports mafia.

    direct connection :
    74.58.231.135:5080
     
  12. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
    Just to note
    From the OP
     
  13. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    I am of the opinion that Village Idiot is not a good idea! Coyo I know you die early on in the game often (btw i am against the coyo hate) but think of this how many time do you see

    +Game: "mikufanboy voted mikufanboy!".... Very often!

    It may lessen bandwagoning but I think it would expose the Mayor faster and give Mafia a free chance if not detected by spy or hooker the previous night to Kill again because Epic Hunches Like mine :p will not be taken advantage of! I mean random works sometime but i think the Village Idiot role will significantly lessen the duration of the game...

    If Inspected he automatically becomes a bad guy kinda cuz the mafia would want to remove him fast... Well maybe he can be a fake Bodyguarded Inspector Voice Combo but i still feel its a bad idea! villagers will continue to be random idiots and he just may get that random bandwagon to make him win!
     
  14. champagne papi

    champagne papi if young tokyo tom don't trust you...

    Joined:
    Aug 11, 2010
    Messages:
    586
    Likes Received:
    246
    Sorry I won't ever use it again without asking, I was just trying to help a bit... But can I use it? I wanted to adapt it a bit
     
  15. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  16. Slipperjeans

    Slipperjeans Loose pants

    Joined:
    Jun 27, 2010
    Messages:
    448
    Likes Received:
    0
    The Villager Idiot winning would not end the game. He would just win, regardless of the overall winner.
    He should be available near when the Godfather is.
     
  17. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    i guess that makes more sence... but if I was the idiot I woudl wait until the last second whenever I was the idiot and vote myself off!

    Just to clarify he only wins if he gets voted off... If he is killed he still loses...

    Voting is the only "priviledge" that Villagers have and the inspectors dont really doo thier job that great IMO so Random Voting is the way to go :D
     
  18. Slipperjeans

    Slipperjeans Loose pants

    Joined:
    Jun 27, 2010
    Messages:
    448
    Likes Received:
    0
    Voting for self should be removed them. Or maybe only the Idiot can't vote for itself.

    Actually I tought of something - if he is the Idiot, his vote should not count at all! This way people can still vote for themselves (including Idiot), but the Idiot's vote would count as 0
     
  19. Halsey

    Halsey Wildstar

    Joined:
    Aug 27, 2010
    Messages:
    3,204
    Likes Received:
    698
    PO Trainer Name:
    Kat
    My only recomendations is having hiden votes, atleast until the end of the round, this solve the problem of dumb people voting for themselves and bandwagon (i hate this i cant use my real name because i get badnwagon'ed :/ )
     
  20. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    I totally agree with Bad Romance...

    The only down side to this is that you dont know who the Mayor is because the votes will be hidden. I suggest a format that allows players to see who got voted for

    eg. +Game : +(x) Vote(s) for Drigger
    or in some other fashion you can still bandwagon but it elliminates you being caught.. there is too much revene voting etc without much reasoning. you still get 30 seconds to defend yourself and also tie the vote.

    The Spy role can also be extended to hava a chance to see who voted for which player since i'm sure hiding the votes will make the Mafia more powerful since they have no consequence from being caught voting because IMO Mafia often vote first.

    also if the votes are hidden during voting you could also display who voted for who after the person gets voted of in the +Bot messages :D
     
  21. Archerknight

    Archerknight Legends

    Joined:
    Aug 9, 2010
    Messages:
    2,430
    Likes Received:
    0
    PO Trainer Name:
    Archerknight
    Really Good! We need to get more players playing.
     
  22. nesan

    nesan Love is blind

    Joined:
    Jun 13, 2010
    Messages:
    241
    Likes Received:
    0
    coyotte508, may I use this on Mysidia's Server please?
     
  23. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    Mafia has lost its players this past week, not much people come on anymore and i'm stuck with "coyotte508 syndrome"... sigh

    There should be a dont kill Drigger on the 1st turn rule!
     
  24. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    ok @ nesan (until the end of the year at least :) )
     
  25. nesan

    nesan Love is blind

    Joined:
    Jun 13, 2010
    Messages:
    241
    Likes Received:
    0
    Thanks! ^^ (what happens in 2011? o.o)
     
  26. Weby

    Weby New Member

    Joined:
    Aug 27, 2010
    Messages:
    20
    Likes Received:
    0
    I added some extra features for mafia, a whoami script, ability for mods to add player or eject player (if he logouts while ingame for example), hidden votes, and an AIDS function.

    I can post the whole script in pastebin.

    Ah and I adapted the /me, /(un)mute, and so on the mafia script.
     
  27. ladysalamence

    ladysalamence Member

    Joined:
    Aug 3, 2010
    Messages:
    368
    Likes Received:
    0
    Explain what whoami and AIDs mean, please. Thanks, Weby, anyway.
     
  28. Weby

    Weby New Member

    Joined:
    Aug 27, 2010
    Messages:
    20
    Likes Received:
    0
    /whoami : gives you your role while ingame... Dont want to scroll up if you missed your role ? This is for you.


    AIDS.. When the hooker rapes someone, this one got 20% chance to be infected by Aids. If he is, he'll die the next turn. Effective on everybody except WW and godfather.
     
  29. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Well don't hesitate to link!
     
  30. Weby

    Weby New Member

    Joined:
    Aug 27, 2010
    Messages:
    20
    Likes Received:
    0
    Last edited: Nov 22, 2010
  31. Slipperjeans

    Slipperjeans Loose pants

    Joined:
    Jun 27, 2010
    Messages:
    448
    Likes Received:
    0
    Requesting permission to adapt and use on my server
     
  32. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  33. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    I dont think AIDS is a good idea... I think it makes the hooker a bad guy kinda, and it lessens the life span of the poor villagers who already have only voting power
    -_-... The hooker ./fucks randomly unless tipped of by inspector or something maybe AIDS should only affect the mafia and not villagers
     
  34. Archerknight

    Archerknight Legends

    Joined:
    Aug 9, 2010
    Messages:
    2,430
    Likes Received:
    0
    PO Trainer Name:
    Archerknight
    We need someway to advertise this server. Too little people are on 24 hours a day to make it playable.
     
  35. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
    I've almost adapted it the Beta scripts now. All that needs doing is all the sendAlls turning to channel messages

    EDIT:
    And done!
    A few bugs needed ironing out, but I think it's finished now, it's gone through some testing.
     
    Last edited: Dec 3, 2010
  36. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    Is the testing over yet? is it finished? I really miss playing this game and right now even gettign 5 players is super hard!
    dont really want to rush you but hurry....
    Btw will the village idiot role be coming too??
     
  37. ladysalamence

    ladysalamence Member

    Joined:
    Aug 3, 2010
    Messages:
    368
    Likes Received:
    0
    I've given Crystal an idea to counter AIDS, though it might change what AIDS does.
     
  38. coolguy31337

    coolguy31337 Amor Fati

    Joined:
    Jun 23, 2010
    Messages:
    386
    Likes Received:
    0
    AIDS is an amazing idea. Since the Hooker paralyzes a mafia regardless of how many members are there, as soon as it finds one person it can continually fuck that one person and prevent the whole mafia from moving. AIDS means that this will not be allowed to happen, and the the Hooker can't indiscriminately fuck people (basically it now requires responsible fucking like a nerfed vigilante)
     
  39. Drigger

    Drigger Fabula Nova Crystallis

    Joined:
    Oct 13, 2010
    Messages:
    1,001
    Likes Received:
    0
    I have a problem with the High percentage of contracting Aids though 20% is wayy too high I mean it wont happen often but to me its like Paralysis occuring in a Pokemon Battle.. when it does happen ur screwed.
     
  40. coolguy31337

    coolguy31337 Amor Fati

    Joined:
    Jun 23, 2010
    Messages:
    386
    Likes Received:
    0
    You're screwed either way.

    See what I did there?