Paste #34023: Get player group if/else

Date: 2016/06/05 07:59:13 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'Circenn City Guests': 
  type: assignment 
  actions: 
      on assignment: 
      - trigger name:click toggle:true 
      - trigger name:chat toggle:true 
      - trigger name:proximity toggle:true 
  interact scripts: 
  - 10 Behavior 
CityTome: 
  type: book 
  title: Circenn City Info 
  author: Circenn 
  text: 
  - "The starter spawn area is protected from mobs and player changes by World Guard. The same applies to other players' that chose to define a region" 
  - "Upon leaving a region players may build freely. You can tell if you've entered/departed from a region by the console message" 
  - "Existing regions are also visible from <dark_blue> http://map.circenn.com" 
  - "Help yourself to food from kitchen before heading on your journey. This is the medium building right of the waterfall in the center of the city." 
  - "Players are welcome to any materials found in chests within the city." 
  - "Materials to create a mailbox have been placed in your inventory" 
  - "Use the following command for more info <dark_blue>/mail" 
Behavior: 
    type: interact 
    steps: 
        1: 
            proximity trigger: 
                entry: 
                    script: 
                    - random 2 
                    - chat "&6Greetings <player.name>! I am a work in progress and admins will not be held accountable for any   mishaps   &ryes that's good... &6that should occur within my proximity" 
                    - chat "&6Hello <player.name>! I am currently under construction, and for your own saftey you may not want to get too close!" 
                exit:  
                    script: 
                    - random 3 
                    - narrate "mutters: I swear... if she tinkers with me one more time...<red>POW!" 
                    - narrate "Shouldn't you be digging something...like a grave?" 
                    - narrate "Those creepers ain't gonna kill themselves" 
            click trigger: 
                script: 
                - if <p@player.groups[Guest]> { 
                - chat "yes" 
                } else { 
                - chat "no" 
                }