Paste #6962: TeamSelect

Date: 2014/07/15 20:14:20 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Teamselectassign:
  type: assignment
  Interact Scripts:
    - 1 Teamselect
  TeamSelect:
    Type: interact
    Requirements:
      Mode: ANY
      List:
      - ingroup Recruit
      - ingroup Admin
    Steps:
        1:
          Proximity Trigger:
            Script:
            - Chat '<Player>, Right Click Me when you are ready to join a team!'
            - Zap step:2
        2:    
          Click Trigger:
            Script:
            - Chat 'Hello <Player>, You have been recruited to join one of our awesome teams!'
            - wait 2
            - Chat 'You may type in chat which team you wish to join and I will send you to that team!'
            - Wait 2
            - Chat 'For now, the Teams you may select are Yellow and Blue'
            - Wait 2
            - Chat 'Type either Yellow or Blue into chat to join that team!!!'
            - Zap step:3
        3:
          Chat Trigger:
            1:
            Trigger: I would like to join the /Yellow/ team!
            Script:
            - Chat 'Great! I will add you to that team and then teleport you to their world now!!'
            - Wait 1
            - Chat 'Ok, I am updating your profile and adding you to the YELLOW team now!
            - Wait 1
            - Execute as_server "pex user <player.name> group add YellowTeam"
            - Wait 1
            - Chat 'Sweet, that worked! Now I will Teleport you to their base, Good Luck and Have Fun!'
            - Chat 'I hope you enjoy the Emerald Gaming Network!!!!!!'
            - Wait 1
            - Execute as_server "warp YellowTeam <player.name>"
            - Finish
            2:
            Trigger: I would like to join the /Blue/ team!
            Script:
            - Chat 'Awesome! I will add you to that team and then teleport you to their world now!!'
            - Wait 1
            - Chat 'Ok, I am adding you to the Blue Roster, hang on just 1 second!'
            - Wait 1
            - Execute as_server "pex user <player.name> group add BlueTeam"
            - Wait 1
            - Chat 'Cool, it looks like that worked! Now I will send you to your new home!'
            - Chat 'Thanks for choosing the Emerald Gaming Network, Have fun!
            - Wait 1
            - Execute as_server "warp BlueTeam <player.name>
            - Finish