Date: 2019/02/26 13:28:34 UTC-08: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
"TEST_GUI":
type: inventory
debug: false
inventory: CHEST
title: "<black><npc.name> Chest"
size: 9
slots:
- "[i@air] [i@air] [i@air] [i@TESTITEM] [i@air] [i@air] [i@air] [i@air] [i@air]"
TESTITEM:
type: item
debug: false
material: i@stone
display name: lol
lore:
- <white><npc.has_flag[TestNPC]>
- <white><npc[<player.flag[TESTLastClickedNPC]>].name>
"TESTNPCTalkEvent":
type: world
debug: false
events:
on player right clicks npc:
- flag player TESTLastClickedNPC:<npc.id>
- if <npc.has_flag[TestNPC]> == true {
- inventory open d:in@TEST_GUI
}
"TESTGUIClickEvent":
type: world
debug: false
events:
on player clicks in TEST_GUI:
- if <context.item.scriptname> == TESTITEM {
- inventory close d:in@TEST_GUI
}