@bgforge/mls-server 3.9.0 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/completion.weidu-baf.json +2 -2
- package/out/completion.weidu-d.json +40 -0
- package/out/completion.weidu-tp2.json +50 -0
- package/out/hover.weidu-baf.json +2 -2
- package/out/hover.weidu-d.json +24 -0
- package/out/hover.weidu-tp2.json +30 -0
- package/out/server.js +516 -521
- package/out/tree-sitter-fallout_msg.wasm +0 -0
- package/out/tree-sitter-weidu_d.wasm +0 -0
- package/out/tree-sitter-weidu_tp2.wasm +0 -0
- package/out/tree-sitter-weidu_tra.wasm +0 -0
- package/out/web-tree-sitter.wasm +0 -0
- package/package.json +11 -11
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
"category": "actions",
|
|
1587
1587
|
"documentation": {
|
|
1588
1588
|
"kind": "markdown",
|
|
1589
|
-
"value": "```weidu-baf-tooltip\nGiveOrder(O:Object, I:Order)\n```\nThis action is used in conjunction with the ReceivedOrder trigger, and works in a similar way to a global shout. The action passes a numeric order to the specified creature. Only one creature at a time responds to an order, and creatures to not detect their own orders.\n```\nIF\n See([EVILCUTOFF])\n OR(3)\n Class(Myself,FIGHTER_ALL)\n Class(Myself,RANGER_ALL)\n Class(Myse lf,PALADIN_ALL)\nTHEN\n RESPONSE #100\n GiveOrder([PC.0.0.THIEF_ALL],100)\nEND\n\nIF\n ReceivedOrder(Myself,100)\n Class(Myself,THIEF_ALL)\nTHEN\n RESPONSE #100\n RunAwayFrom([EVILCUTOFF],120)\n Hide()\nEND\n```"
|
|
1589
|
+
"value": "```weidu-baf-tooltip\nGiveOrder(O:Object, I:Order)\n```\nThis action is used in conjunction with the ReceivedOrder trigger, and works in a similar way to a global shout. The action passes a numeric order to the specified creature. Only one creature at a time responds to an order, and creatures to not detect their own orders. It also sets the LastCommandedBy object to point to the target.\n```\nIF\n See([EVILCUTOFF])\n OR(3)\n Class(Myself,FIGHTER_ALL)\n Class(Myself,RANGER_ALL)\n Class(Myse lf,PALADIN_ALL)\nTHEN\n RESPONSE #100\n GiveOrder([PC.0.0.THIEF_ALL],100)\nEND\n\nIF\n ReceivedOrder(Myself,100)\n Class(Myself,THIEF_ALL)\nTHEN\n RESPONSE #100\n RunAwayFrom([EVILCUTOFF],120)\n Hide()\nEND\n```"
|
|
1590
1590
|
}
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
@@ -2807,7 +2807,7 @@
|
|
|
2807
2807
|
"category": "actions",
|
|
2808
2808
|
"documentation": {
|
|
2809
2809
|
"kind": "markdown",
|
|
2810
|
-
"value": "```weidu-baf-tooltip\nSaveGame(I:Slot)\n```\nThis action saves the game in the specified save slot."
|
|
2810
|
+
"value": "```weidu-baf-tooltip\nSaveGame(I:Slot)\n```\nThis action saves the game in the specified save slot.\n\nThis action is queued internally and runs only after the current script round has finished. Game states that are updated in the same script round will be included in the saved game.\n"
|
|
2811
2811
|
}
|
|
2812
2812
|
},
|
|
2813
2813
|
{
|
|
@@ -149,6 +149,46 @@
|
|
|
149
149
|
"value": "```weidu-d-tooltip\nINTERJECT_COPY_TRANS4 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nThis is either INTERJECT_COPY_TRANS3 with INTERJECT_COPY_TRANS2-style action handling, or INTERJECT_COPY_TRANS2 with the extended INTERJECT_COPY_TRANS3 state creation rules, depending at how you look at it."
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"label": "I_C_T",
|
|
154
|
+
"kind": 3,
|
|
155
|
+
"source": "builtin",
|
|
156
|
+
"category": "actions",
|
|
157
|
+
"documentation": {
|
|
158
|
+
"kind": "markdown",
|
|
159
|
+
"value": "```weidu-d-tooltip\nI_C_T [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS."
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"label": "I_C_T2",
|
|
164
|
+
"kind": 3,
|
|
165
|
+
"source": "builtin",
|
|
166
|
+
"category": "actions",
|
|
167
|
+
"documentation": {
|
|
168
|
+
"kind": "markdown",
|
|
169
|
+
"value": "```weidu-d-tooltip\nI_C_T2 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS2."
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"label": "I_C_T3",
|
|
174
|
+
"kind": 3,
|
|
175
|
+
"source": "builtin",
|
|
176
|
+
"category": "actions",
|
|
177
|
+
"documentation": {
|
|
178
|
+
"kind": "markdown",
|
|
179
|
+
"value": "```weidu-d-tooltip\nI_C_T3 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS3."
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"label": "I_C_T4",
|
|
184
|
+
"kind": 3,
|
|
185
|
+
"source": "builtin",
|
|
186
|
+
"category": "actions",
|
|
187
|
+
"documentation": {
|
|
188
|
+
"kind": "markdown",
|
|
189
|
+
"value": "```weidu-d-tooltip\nI_C_T4 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS4."
|
|
190
|
+
}
|
|
191
|
+
},
|
|
152
192
|
{
|
|
153
193
|
"label": "REPLACE",
|
|
154
194
|
"kind": 3,
|
|
@@ -2431,6 +2431,36 @@
|
|
|
2431
2431
|
"value": "```weidu-tp2-tooltip\nAUTO_TRA path [ subdir ]\n```\nThe `AUTO_TRA` flag is used with the `COMPILE` and\n`EXTEND_TOP (TP2)` `TP2 Action`s. It automatically loads\n`TRA` files that match your `D` files. The\nexpression `%s`, occurring in path, is replaced with the\n`languageDirectory` of the `LANGUAGE` the user\nselected. The `TRA` file loaded by `AUTO_TRA` takes\nprecedence over all other `TRA` files. Variables are\nevaluated when the action is processed. If a subdirectory is\nprovided, any matching `TRA` file in this directory is loaded\nafter the corresponding `TRA` file in the normal directory on\n**EE-type** games. Only the name of the subdirectory itself should\nbe given. If `foo` is your mod folder, `bar` is your `TRA` folder\nand `baz` is your subdirectory, your `AUTO_TRA` might look\nlike `AUTO_TRA ~foo/bar~ ~baz~`."
|
|
2432
2432
|
}
|
|
2433
2433
|
},
|
|
2434
|
+
{
|
|
2435
|
+
"label": "EXISTING",
|
|
2436
|
+
"kind": 14,
|
|
2437
|
+
"source": "builtin",
|
|
2438
|
+
"category": "flag",
|
|
2439
|
+
"documentation": {
|
|
2440
|
+
"kind": "markdown",
|
|
2441
|
+
"value": "```weidu-tp2-tooltip\nADD_JOURNAL [ EXISTING ] [ MANAGED ] [ TITLE ( text ) ] reference list\n```\nFlag for the ADD_JOURNAL action; adds the entries to an existing quest rather than creating a new one."
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"label": "KEEP_CRLF",
|
|
2446
|
+
"kind": 14,
|
|
2447
|
+
"source": "builtin",
|
|
2448
|
+
"category": "flag",
|
|
2449
|
+
"documentation": {
|
|
2450
|
+
"kind": "markdown",
|
|
2451
|
+
"value": "```weidu-tp2-tooltip\nAPPEND optNoBackup filename newText when list [ KEEP_CRLF ]\n```\nFlag for file-append actions; when absent, double newlines in the appended file are collapsed."
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
"label": "MANAGED",
|
|
2456
|
+
"kind": 14,
|
|
2457
|
+
"source": "builtin",
|
|
2458
|
+
"category": "flag",
|
|
2459
|
+
"documentation": {
|
|
2460
|
+
"kind": "markdown",
|
|
2461
|
+
"value": "```weidu-tp2-tooltip\nADD_JOURNAL [ EXISTING ] [ MANAGED ] [ TITLE ( text ) ] reference list\n```\nFlag for the ADD_JOURNAL action (EE games only)."
|
|
2462
|
+
}
|
|
2463
|
+
},
|
|
2434
2464
|
{
|
|
2435
2465
|
"label": "MODDER",
|
|
2436
2466
|
"kind": 14,
|
|
@@ -2451,6 +2481,16 @@
|
|
|
2451
2481
|
"value": "```weidu-tp2-tooltip\nNO_IF_EVAL_BUG\n```\nThis action solves a long-standing bug with the IF_EVAL action. Since solving it is not directly possible without damaging backwards compatibility, you have to use this action (preferably in an ALWAYS statement) to solve the bug for yourself. IF_EVAL will not work with this action in the TP2 - use PATCH_IF and BUT_ONLY_IF_IT_CHANGES instead."
|
|
2452
2482
|
}
|
|
2453
2483
|
},
|
|
2484
|
+
{
|
|
2485
|
+
"label": "NULL",
|
|
2486
|
+
"kind": 14,
|
|
2487
|
+
"source": "builtin",
|
|
2488
|
+
"category": "flag",
|
|
2489
|
+
"documentation": {
|
|
2490
|
+
"kind": "markdown",
|
|
2491
|
+
"value": "```weidu-tp2-tooltip\nREAD_ASCII offset variable [ ELSE string ] [ ( value ) [ NULL ] ]\n```\nFlag for READ_ASCII; reads a fixed-length string that may contain embedded nul bytes."
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2454
2494
|
{
|
|
2455
2495
|
"label": "QUICK_MENU",
|
|
2456
2496
|
"kind": 14,
|
|
@@ -2481,6 +2521,16 @@
|
|
|
2481
2521
|
"value": "```weidu-tp2-tooltip\nSCRIPT_STYLE style\n```\nThis flag determines how WeiDU will read in BAF and BCS files and write out BAF and BCS files. Possible options for \"style\" include BG (the default), IWD1, IWD2, and PST. See the Scripting Styles tutorial."
|
|
2482
2522
|
}
|
|
2483
2523
|
},
|
|
2524
|
+
{
|
|
2525
|
+
"label": "TITLE",
|
|
2526
|
+
"kind": 14,
|
|
2527
|
+
"source": "builtin",
|
|
2528
|
+
"category": "flag",
|
|
2529
|
+
"documentation": {
|
|
2530
|
+
"kind": "markdown",
|
|
2531
|
+
"value": "```weidu-tp2-tooltip\nADD_JOURNAL [ EXISTING ] [ MANAGED ] [ TITLE ( text ) ] reference list\n```\nFlag for the ADD_JOURNAL action; sets the quest title."
|
|
2532
|
+
}
|
|
2533
|
+
},
|
|
2484
2534
|
{
|
|
2485
2535
|
"label": "UNINSTALL_ORDER",
|
|
2486
2536
|
"kind": 14,
|
package/out/hover.weidu-baf.json
CHANGED
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
"GiveOrder": {
|
|
951
951
|
"contents": {
|
|
952
952
|
"kind": "markdown",
|
|
953
|
-
"value": "```weidu-baf-tooltip\nGiveOrder(O:Object, I:Order)\n```\nThis action is used in conjunction with the ReceivedOrder trigger, and works in a similar way to a global shout. The action passes a numeric order to the specified creature. Only one creature at a time responds to an order, and creatures to not detect their own orders.\n```\nIF\n See([EVILCUTOFF])\n OR(3)\n Class(Myself,FIGHTER_ALL)\n Class(Myself,RANGER_ALL)\n Class(Myse lf,PALADIN_ALL)\nTHEN\n RESPONSE #100\n GiveOrder([PC.0.0.THIEF_ALL],100)\nEND\n\nIF\n ReceivedOrder(Myself,100)\n Class(Myself,THIEF_ALL)\nTHEN\n RESPONSE #100\n RunAwayFrom([EVILCUTOFF],120)\n Hide()\nEND\n```"
|
|
953
|
+
"value": "```weidu-baf-tooltip\nGiveOrder(O:Object, I:Order)\n```\nThis action is used in conjunction with the ReceivedOrder trigger, and works in a similar way to a global shout. The action passes a numeric order to the specified creature. Only one creature at a time responds to an order, and creatures to not detect their own orders. It also sets the LastCommandedBy object to point to the target.\n```\nIF\n See([EVILCUTOFF])\n OR(3)\n Class(Myself,FIGHTER_ALL)\n Class(Myself,RANGER_ALL)\n Class(Myse lf,PALADIN_ALL)\nTHEN\n RESPONSE #100\n GiveOrder([PC.0.0.THIEF_ALL],100)\nEND\n\nIF\n ReceivedOrder(Myself,100)\n Class(Myself,THIEF_ALL)\nTHEN\n RESPONSE #100\n RunAwayFrom([EVILCUTOFF],120)\n Hide()\nEND\n```"
|
|
954
954
|
}
|
|
955
955
|
},
|
|
956
956
|
"GivePartyAllEquipment": {
|
|
@@ -1682,7 +1682,7 @@
|
|
|
1682
1682
|
"SaveGame": {
|
|
1683
1683
|
"contents": {
|
|
1684
1684
|
"kind": "markdown",
|
|
1685
|
-
"value": "```weidu-baf-tooltip\nSaveGame(I:Slot)\n```\nThis action saves the game in the specified save slot."
|
|
1685
|
+
"value": "```weidu-baf-tooltip\nSaveGame(I:Slot)\n```\nThis action saves the game in the specified save slot.\n\nThis action is queued internally and runs only after the current script round has finished. Game states that are updated in the same script round will be included in the saved game.\n"
|
|
1686
1686
|
}
|
|
1687
1687
|
},
|
|
1688
1688
|
"SaveLocation": {
|
package/out/hover.weidu-d.json
CHANGED
|
@@ -89,6 +89,30 @@
|
|
|
89
89
|
"value": "```weidu-d-tooltip\nINTERJECT_COPY_TRANS4 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nThis is either INTERJECT_COPY_TRANS3 with INTERJECT_COPY_TRANS2-style action handling, or INTERJECT_COPY_TRANS2 with the extended INTERJECT_COPY_TRANS3 state creation rules, depending at how you look at it."
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
+
"I_C_T": {
|
|
93
|
+
"contents": {
|
|
94
|
+
"kind": "markdown",
|
|
95
|
+
"value": "```weidu-d-tooltip\nI_C_T [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS."
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"I_C_T2": {
|
|
99
|
+
"contents": {
|
|
100
|
+
"kind": "markdown",
|
|
101
|
+
"value": "```weidu-d-tooltip\nI_C_T2 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS2."
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"I_C_T3": {
|
|
105
|
+
"contents": {
|
|
106
|
+
"kind": "markdown",
|
|
107
|
+
"value": "```weidu-d-tooltip\nI_C_T3 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS3."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"I_C_T4": {
|
|
111
|
+
"contents": {
|
|
112
|
+
"kind": "markdown",
|
|
113
|
+
"value": "```weidu-d-tooltip\nI_C_T4 [ SAFE ] entryFilename entryLabel globalVariable chainText list\n```\nShortcut for INTERJECT_COPY_TRANS4."
|
|
114
|
+
}
|
|
115
|
+
},
|
|
92
116
|
"REPLACE": {
|
|
93
117
|
"contents": {
|
|
94
118
|
"kind": "markdown",
|
package/out/hover.weidu-tp2.json
CHANGED
|
@@ -1151,6 +1151,24 @@
|
|
|
1151
1151
|
"value": "```weidu-tp2-tooltip\nAUTO_TRA path [ subdir ]\n```\nThe `AUTO_TRA` flag is used with the `COMPILE` and\n`EXTEND_TOP (TP2)` `TP2 Action`s. It automatically loads\n`TRA` files that match your `D` files. The\nexpression `%s`, occurring in path, is replaced with the\n`languageDirectory` of the `LANGUAGE` the user\nselected. The `TRA` file loaded by `AUTO_TRA` takes\nprecedence over all other `TRA` files. Variables are\nevaluated when the action is processed. If a subdirectory is\nprovided, any matching `TRA` file in this directory is loaded\nafter the corresponding `TRA` file in the normal directory on\n**EE-type** games. Only the name of the subdirectory itself should\nbe given. If `foo` is your mod folder, `bar` is your `TRA` folder\nand `baz` is your subdirectory, your `AUTO_TRA` might look\nlike `AUTO_TRA ~foo/bar~ ~baz~`."
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
1154
|
+
"EXISTING": {
|
|
1155
|
+
"contents": {
|
|
1156
|
+
"kind": "markdown",
|
|
1157
|
+
"value": "```weidu-tp2-tooltip\nADD_JOURNAL [ EXISTING ] [ MANAGED ] [ TITLE ( text ) ] reference list\n```\nFlag for the ADD_JOURNAL action; adds the entries to an existing quest rather than creating a new one."
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
"KEEP_CRLF": {
|
|
1161
|
+
"contents": {
|
|
1162
|
+
"kind": "markdown",
|
|
1163
|
+
"value": "```weidu-tp2-tooltip\nAPPEND optNoBackup filename newText when list [ KEEP_CRLF ]\n```\nFlag for file-append actions; when absent, double newlines in the appended file are collapsed."
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"MANAGED": {
|
|
1167
|
+
"contents": {
|
|
1168
|
+
"kind": "markdown",
|
|
1169
|
+
"value": "```weidu-tp2-tooltip\nADD_JOURNAL [ EXISTING ] [ MANAGED ] [ TITLE ( text ) ] reference list\n```\nFlag for the ADD_JOURNAL action (EE games only)."
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1154
1172
|
"MODDER": {
|
|
1155
1173
|
"contents": {
|
|
1156
1174
|
"kind": "markdown",
|
|
@@ -1163,6 +1181,12 @@
|
|
|
1163
1181
|
"value": "```weidu-tp2-tooltip\nNO_IF_EVAL_BUG\n```\nThis action solves a long-standing bug with the IF_EVAL action. Since solving it is not directly possible without damaging backwards compatibility, you have to use this action (preferably in an ALWAYS statement) to solve the bug for yourself. IF_EVAL will not work with this action in the TP2 - use PATCH_IF and BUT_ONLY_IF_IT_CHANGES instead."
|
|
1164
1182
|
}
|
|
1165
1183
|
},
|
|
1184
|
+
"NULL": {
|
|
1185
|
+
"contents": {
|
|
1186
|
+
"kind": "markdown",
|
|
1187
|
+
"value": "```weidu-tp2-tooltip\nREAD_ASCII offset variable [ ELSE string ] [ ( value ) [ NULL ] ]\n```\nFlag for READ_ASCII; reads a fixed-length string that may contain embedded nul bytes."
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1166
1190
|
"QUICK_MENU": {
|
|
1167
1191
|
"contents": {
|
|
1168
1192
|
"kind": "markdown",
|
|
@@ -1181,6 +1205,12 @@
|
|
|
1181
1205
|
"value": "```weidu-tp2-tooltip\nSCRIPT_STYLE style\n```\nThis flag determines how WeiDU will read in BAF and BCS files and write out BAF and BCS files. Possible options for \"style\" include BG (the default), IWD1, IWD2, and PST. See the Scripting Styles tutorial."
|
|
1182
1206
|
}
|
|
1183
1207
|
},
|
|
1208
|
+
"TITLE": {
|
|
1209
|
+
"contents": {
|
|
1210
|
+
"kind": "markdown",
|
|
1211
|
+
"value": "```weidu-tp2-tooltip\nADD_JOURNAL [ EXISTING ] [ MANAGED ] [ TITLE ( text ) ] reference list\n```\nFlag for the ADD_JOURNAL action; sets the quest title."
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1184
1214
|
"UNINSTALL_ORDER": {
|
|
1185
1215
|
"contents": {
|
|
1186
1216
|
"kind": "markdown",
|