Paste #3922: Edit of P#3921 - Edit of P#3920 - Edit of P#3919 - Edit of P#3918 - Edit of P#3917 - fsh

Date: 2014/05/01 12:21:26 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


FishingComp:
  type: assignment

  interact scripts:
  - FishCompInt

  actions:
    on assignment:
    - trigger name:damage toggle:false

FishCompInt:
  type: interact
  steps:
    1:
      click trigger:
        script:
        - run fishercompcheck

    2:
      click trigger:
        script:
        - CHAT "Hello <player.name>, if you wish to submit a &bFish &rto be judged, Right Click Me with the entry in your hand!"
        - CHAT "Bear in mind you can only enter &4ONCE &rand you cannot redo your entry."
        - wait 2
        - CHAT "So, you sure you wanna Enter? if so, Right Click Me!"
        - flag <player> fishersubmitted == 2
        - ZAP s@FishCompInt step: 1


fishercompcheck:
  type: task
  script:
  - if <player.flag[fishersubmitted]> == 1 run s@FishCompInt step:1
    else if <player.flag[fishersubmitted]> == 2 run s@FishCompSubmit
    else run s@FishCompInt step: 2

FishCompSubmit:
  type: task
  script:
  - define fish e@entity.item_in_hand
  - CHAT "<fish>"