Inviting Spectators

Discussion in 'Implemented' started by ShowMeTheManaphy, Feb 17, 2013.

  1. ShowMeTheManaphy

    ShowMeTheManaphy New Member

    Joined:
    Feb 4, 2013
    Messages:
    1
    Likes Received:
    0
    I feel that a way to invite certain users to spectate battles would be really useful. Sometimes you want certain people to be unable to watch your battle (tournament opponents, annoying users) but also would like others to be able to watch your battle (tutors, teammates, friends, etc) and Disallow Spectators doesn't allow this.

    I am not sure how hard this would be to implement but just thought it seemed like a good idea.

    Thanks
     
  2. Elements

    Elements BOOMER SOONER Forum Moderator Server Staff Forum Moderator Server Staff

    Joined:
    May 9, 2010
    Messages:
    1,195
    Likes Received:
    48
    PO Trainer Name:
    Elements
    Cool Idea. I like it.
     
  3. VuvuzelaΒzz

    VuvuzelaΒzz •Sage

    Joined:
    Jan 8, 2011
    Messages:
    890
    Likes Received:
    138
    PO Trainer Name:
    Stephen Colbur
    Bumping this because I was about to suggest it myself. I assume it would function similarly to the link that appears in Tohjo for tour finals.
     
  4. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    This should be possible with server scripts, thing is, if the player has multiple battles there can be a conflict (if you only want them to see one of them).
     
  5. Jolteonnn

    Jolteonnn Jolt.

    Joined:
    Jun 18, 2013
    Messages:
    47
    Likes Received:
    1
    PO Trainer Name:
    Jolteon
    I like this idea because personally when I'm just casually battling people I feel under pressure when people start watching the battles, especially in Tours.
     
  6. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    The only problem is, having Disallow Specs = No Specs. I have a half coded script for this, I just can't connect the correct battles to the invitation yet. It sends a message similar to the one when you invite someone to a channel.



    EDIT: Submitted some code, its just pending approval and final tweaking. It won't bypass Disallow Specs, but you can invite people to watch your battle now.
     
    Last edited: Jul 27, 2013
  7. VuvuzelaΒzz

    VuvuzelaΒzz •Sage

    Joined:
    Jan 8, 2011
    Messages:
    890
    Likes Received:
    138
    PO Trainer Name:
    Stephen Colbur
    I don't know how possible this is, but if you could enable and disable specs during battle in a similar way to how you can ignore them, then that could bypass the issue I guess. Another way I could see it working, since you mentioned that the invite is similar to channel invites, is doing something like how you can make channels invite-only with allowing and disallowing specs.

    Sorry if what I'm suggesting isn't possible, just trying to help!
     
  8. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    Well, we have a command now: /invitespec [name]
    It invites a non-idle player to watch your battle (provided "Allow Spectators" is on), but only the oldest battle you have open. So if you have 3 battles open, only the battle you started first is able to be invited to.


    The problem with bypassing disallow specs is that both players might not agree to have someone watch their battle
     
  9. VuvuzelaΒzz

    VuvuzelaΒzz •Sage

    Joined:
    Jan 8, 2011
    Messages:
    890
    Likes Received:
    138
    PO Trainer Name:
    Stephen Colbur
    Perhaps make it so that if disallow specs was ticked in the challenge, then it's non-bypassable, but if it was not, you'd be able to turn it on/off in battle?(that's assuming my previous post was feasible) I mean, I'm not sure to what extent a battle window could be treated as a type of channel, but the way I could see it working is that if the box was ticked in the challenge window, then the battlers would be "channel members" in the sense that they wouldn't be able to make it "invite-only", but if it was not ticked, they'd be "channel administrators", so they'd be able to.