-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnippets.json
79 lines (73 loc) · 2.42 KB
/
snippets.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
// Script NPC
// ======================
"NPC Script": {
"prefix": "npc-script",
"body": [
"${1:map}, ${2:x}, ${3:y}, ${4:dir}\tscript\t${5:name}\t${6:sprite},{",
"\t${7:// code}",
"}"
],
"description": "Generates a NPC that runs a script."
},
"Floating NPC Script": {
"prefix": "npc-script-float",
"body": [
"-\tscript\t${1:name}\tFAKE_NPC,{",
"\t${2:// code}",
"}"
],
"description": "Generates a Floating NPC that runs a script."
},
"NPC Script w/ Trigger": {
"prefix": "npc-script-trigger",
"body": [
"${1:map}, ${2:x}, ${3:y}, ${4:dir}\tscript\t${5:name}\t${6:sprite},${7:triggerX},${8:triggerY},{",
"\t${9:// code}",
"",
"OnTouch:",
"\t${10:// On touch code",
"}"
],
"description": "Generates a NPC that runs a script and has a trigger area."
},
"Dummy Script NPC": {
"prefix": "npc-dummy-script",
"body": [
"${5:prontera}, ${3:150}, ${4:150}, 4\tscript\t${2:name}\t1_M_01,{",
"\t${1:// code}",
"}"
],
"description": "Quickly generates a placed NPC that runs a script. It comes with a placeholder position and sprite."
},
// Other NPC types
// ======================
"Warp": {
"prefix": "npc-warp",
"body": [
"${1:fromMap},${2:fromX},${3:fromY}\twarp\t${7:warpName}\t${8:spanX},${9:spanY},${4:toMap},${5:toX},${6:toY}"
],
"description": "Generates a Warp"
},
// TODO:
//-%TAB%shop%TAB%<NPC Name>%TAB%<sprite>,<itemid>:<price>{,<itemid>:<price>...}
//<map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite>,<itemid>:<price>{,<itemid>:<price>...}
//<map name>,<x>,<y>,<facing>%TAB%trader%TAB%<NPC Name>%TAB%<sprite>,{<code>}
//-%TAB%trader%TAB%<NPC Name>%TAB%FAKE_NPC,{<code>}
//warp: <map name>,<x>,<y>{,<facing>}%TAB%duplicate(<label>)%TAB%<NPC Name>%TAB%<spanx>,<spany>
//shop/cashshop/npc: -%TAB%duplicate(<label>)%TAB%<NPC Name>%TAB%<sprite>
//shop/cashshop/npc: <map name>,<x>,<y>,<facing>%TAB%duplicate(<label>)%TAB%<NPC Name>%TAB%<sprite>
//npc: -%TAB%duplicate(<label>)%TAB%<NPC Name>%TAB%<sprite>,<triggerX>,<triggerY>
//npc: <map name>,<x>,<y>,<facing>%TAB%duplicate(<label>)%TAB%<NPC Name>%TAB%<sprite>,<triggerX>,<triggerY>
// Functions
// ======================
"Function": {
"prefix": "func",
"body": [
"function\tscript\t${1:functionName}\t{",
"\t{2:// code}",
"}"
],
"description": "Generates a Function"
}
}