Help with a mafia command in the code

Discussion in 'Mafia' started by .Rawr!, Aug 31, 2013.

Thread Status:
Not open for further replies.
Moderators: Pamitha, Water
  1. .Rawr!

    .Rawr! c(°3°)כ

    Joined:
    Feb 13, 2012
    Messages:
    683
    Likes Received:
    16
    PO Trainer Name:
    Day Healer
    Ey people, Day Healer here (my name in mafia :D )
    Anyways I have in mind an idea for a funny new theme, but I have a question. I'm wondering if there is a command to make a player switch sides with his/her same role. For example:

    Nergal /morph command allow it to make a enemy player switch to his side, but in the morph form only.

    I like instead a command which allow to make an enemy player switch to our side, but retaining his/her same role. There is a command like that? :333



    Pd: my theme is a Clanwar type theme, so there is not confusion in the switches.
     
  2. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    Only way is to have have a copy of that same role with a different side, then make the player convert to that role. It's basically the same principle used in Trainers, which means your theme's code will be quite large.
     
  3. Sky Sentinel

    Sky Sentinel You see?

    Joined:
    Oct 21, 2012
    Messages:
    814
    Likes Received:
    24
    PO Trainer Name:
    Sky Sentinel
    Would be like sidoh, correct? You could look in DN for an example
     
  4. .Rawr!

    .Rawr! c(°3°)כ

    Joined:
    Feb 13, 2012
    Messages:
    683
    Likes Received:
    16
    PO Trainer Name:
    Day Healer
    Thanks icekirby and Skysentinel, it helped a lot :3
    By the way, im starting to write my new theme yay
     
  5. Scatterbrain

    Scatterbrain You only live once*

    Joined:
    Jul 5, 2012
    Messages:
    865
    Likes Received:
    4
    just a tip, copy paste saves a shitload of time.
     
Moderators: Pamitha, Water
Thread Status:
Not open for further replies.