Date: 2014/05/01 12:21:26 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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>"