@bgforge/mls-server 3.8.1 → 3.9.0
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.fallout-ssl.json +132 -32
- package/out/completion.weidu-baf.json +3 -3
- package/out/completion.weidu-tp2.json +1 -1
- package/out/hover.fallout-ssl.json +92 -32
- package/out/hover.weidu-baf.json +3 -3
- package/out/hover.weidu-tp2.json +1 -1
- package/out/server.js +476 -476
- package/package.json +5 -5
|
@@ -2655,6 +2655,16 @@
|
|
|
2655
2655
|
"value": "```fallout-ssl-tooltip\nHOOK_DEATHANIM2\n```\nRuns after Fallout has calculated the death animation. Lets you set your own custom frame id, so more powerful than `HOOK_DEATHANIM1`, but performs no validation.<br>\nWhen using `critter_dmg` function, this script will also run. In that case weapon pid will be -1 and attacker will point to an object with `obj_art_fid == 0x20001F5`.\n\nDoes not run for critters in the knockdown/out state.\n\n```\nint arg0 - The pid of the weapon performing the attack. (May be -1 if the attack is unarmed)\nCritter arg1 - The attacker\nCritter arg2 - The target\nint arg3 - The amount of damage\nint arg4 - The death anim id calculated by Fallout\n\nint ret0 - The death anim id to override with\n```\n"
|
|
2656
2656
|
}
|
|
2657
2657
|
},
|
|
2658
|
+
{
|
|
2659
|
+
"label": "HOOK_DEPRECATED HOOKS",
|
|
2660
|
+
"kind": 21,
|
|
2661
|
+
"source": "builtin",
|
|
2662
|
+
"category": "hooks",
|
|
2663
|
+
"documentation": {
|
|
2664
|
+
"kind": "markdown",
|
|
2665
|
+
"value": "```fallout-ssl-tooltip\nHOOK_DEPRECATED HOOKS\n```\n* `hs_hexmoveblocking.int`\n* `hs_hexaiblocking.int`\n* `hs_hexshootblocking.int`\n* `hs_hexsightblocking.int`\n\nRun when checking to see if a hex blocks movement or shooting. (or ai-ing, presumably...)\n\n__NOTE:__ These hook scripts can become very CPU-intensive and you should avoid using them.\nFor this reason, these hooks are not thoroughly supported in sfall, and may be removed in future versions.<br>\nIf you want to check if some tile or path is blocked, use functions: `obj_blocking_tile`, `obj_blocking_line`, `path_find_to`.<br>\nIf you want script to be called every time NPC moves by hex in combat, use `HOOK_MOVECOST` hook.\n\n```\nCritter arg0 - the critter doing the moving\nint arg1 - the tile number being checked\nint arg2 - the elevation being checked\nint arg3 - 1 if the hex would normally be blocking\n\nObj ret0 - 0 if the hex doesn't block, or any sort of object pointer if it does\n```\n"
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2658
2668
|
{
|
|
2659
2669
|
"label": "HOOK_DESCRIPTIONOBJ",
|
|
2660
2670
|
"kind": 21,
|
|
@@ -3329,6 +3339,16 @@
|
|
|
3329
3339
|
"value": "```fallout-ssl-tooltip\nvoid SayStartPos(int position)\n```\nInitiates a new dialog sequence starting at the specified position index."
|
|
3330
3340
|
}
|
|
3331
3341
|
},
|
|
3342
|
+
{
|
|
3343
|
+
"label": "^",
|
|
3344
|
+
"kind": 3,
|
|
3345
|
+
"source": "builtin",
|
|
3346
|
+
"category": "sfall_functions",
|
|
3347
|
+
"documentation": {
|
|
3348
|
+
"kind": "markdown",
|
|
3349
|
+
"value": "```fallout-ssl-tooltip\nx^y\n```\nExponentiation. Use as any other arithmetic operator, like `5^(1/3)`.\nIf exponent is an integer, you can use a negative base, otherwise you will get \"NaN\" with a negative base.\nIf both arguments are integers, the result will be an integer.\n"
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3332
3352
|
{
|
|
3333
3353
|
"label": "abs",
|
|
3334
3354
|
"kind": 3,
|
|
@@ -3366,7 +3386,7 @@
|
|
|
3366
3386
|
"category": "sfall_functions",
|
|
3367
3387
|
"documentation": {
|
|
3368
3388
|
"kind": "markdown",
|
|
3369
|
-
"value": "```fallout-ssl-tooltip\nint add_extra_msg_file(string fileName)\n```\nLoads
|
|
3389
|
+
"value": "```fallout-ssl-tooltip\nint add_extra_msg_file(string fileName)\n```\nLoads a custom message file and returns the file ID number assigned to it, in the range of 0x3000 to 0x3FFF, for use with the `message_str_game` function.\n- `fileName`: the name of the custom message file (including the .msg extension) in `text\\<language>\\game\\` directory.\n- __NOTE:__ if the msg file does not exist in the current language directory, the function will try to load it from the `text\\English\\game\\` directory.\n\nAlternative form: `int add_extra_msg_file(string fileName, int fileNumber)` **[DEPRECATED]**\n- __Deprecation notice:__ Starting from sfall 4.5/3.8.50, the two-argument form is deprecated. The `fileNumber` argument is ignored, and the function behaves the same as the one-argument form.\n"
|
|
3370
3390
|
}
|
|
3371
3391
|
},
|
|
3372
3392
|
{
|
|
@@ -3456,7 +3476,7 @@
|
|
|
3456
3476
|
"category": "sfall_functions",
|
|
3457
3477
|
"documentation": {
|
|
3458
3478
|
"kind": "markdown",
|
|
3459
|
-
"value": "```fallout-ssl-tooltip\nint art_exists(int artFID)\n```\
|
|
3479
|
+
"value": "```fallout-ssl-tooltip\nint art_exists(int artFID)\n```\nChecks if the given `artFID` exists in the game.\n- Useful when you want to check if critter can use specific weapon: `art_exists((artFid bwand 0xffff0fff) bwor (weaponAnim * 0x1000))`.\n"
|
|
3460
3480
|
}
|
|
3461
3481
|
},
|
|
3462
3482
|
{
|
|
@@ -3646,7 +3666,7 @@
|
|
|
3646
3666
|
"category": "sfall_functions",
|
|
3647
3667
|
"documentation": {
|
|
3648
3668
|
"kind": "markdown",
|
|
3649
|
-
"value": "```fallout-ssl-tooltip\nint charcode(string text)\n```\nReturns ASCII code for the first character in given string."
|
|
3669
|
+
"value": "```fallout-ssl-tooltip\nint charcode(string text)\n```\nReturns ASCII code for the first character in the given string."
|
|
3650
3670
|
}
|
|
3651
3671
|
},
|
|
3652
3672
|
{
|
|
@@ -3706,7 +3726,7 @@
|
|
|
3706
3726
|
"category": "sfall_functions",
|
|
3707
3727
|
"documentation": {
|
|
3708
3728
|
"kind": "markdown",
|
|
3709
|
-
"value": "```fallout-ssl-tooltip\nObjectPtr create_spatial(int scriptID, int tile, int elevation, int radius)\n```\nCreates new spatial script with given
|
|
3729
|
+
"value": "```fallout-ssl-tooltip\nObjectPtr create_spatial(int scriptID, int tile, int elevation, int radius)\n```\nCreates new spatial script with the given scriptID at the given tile and radius."
|
|
3710
3730
|
}
|
|
3711
3731
|
},
|
|
3712
3732
|
{
|
|
@@ -4156,7 +4176,7 @@
|
|
|
4156
4176
|
"category": "sfall_functions",
|
|
4157
4177
|
"documentation": {
|
|
4158
4178
|
"kind": "markdown",
|
|
4159
|
-
"value": "```fallout-ssl-tooltip\nint get_bodypart_hit_modifier(int bodypart)\n```\
|
|
4179
|
+
"value": "```fallout-ssl-tooltip\nint get_bodypart_hit_modifier(int bodypart)\n```\nReturns the hit percentage modifiers for aiming at specific bodyparts. Valid bodypart id's are from 0 to 8."
|
|
4160
4180
|
}
|
|
4161
4181
|
},
|
|
4162
4182
|
{
|
|
@@ -4186,7 +4206,7 @@
|
|
|
4186
4206
|
"category": "sfall_functions",
|
|
4187
4207
|
"documentation": {
|
|
4188
4208
|
"kind": "markdown",
|
|
4189
|
-
"value": "```fallout-ssl-tooltip\nint get_critical_table(int crittertype, int bodypart, int level, int valuetype)\n```\
|
|
4209
|
+
"value": "```fallout-ssl-tooltip\nint get_critical_table(int crittertype, int bodypart, int level, int valuetype)\n```\nReturns the current critical table. For details see [critical hit tables](http://falloutmods.wikia.com/wiki/Critical_hit_tables). Requires `OverrideCriticalTable` to be enabled in `ddraw.ini` (already enabled by default)."
|
|
4190
4210
|
}
|
|
4191
4211
|
},
|
|
4192
4212
|
{
|
|
@@ -4266,7 +4286,7 @@
|
|
|
4266
4286
|
"category": "sfall_functions",
|
|
4267
4287
|
"documentation": {
|
|
4268
4288
|
"kind": "markdown",
|
|
4269
|
-
"value": "```fallout-ssl-tooltip\nint get_flags(ObjectPtr obj)\n```\
|
|
4289
|
+
"value": "```fallout-ssl-tooltip\nint get_flags(ObjectPtr obj)\n```\nReturns the current value of object flags (see **define_extra.h** for available flags)."
|
|
4270
4290
|
}
|
|
4271
4291
|
},
|
|
4272
4292
|
{
|
|
@@ -4386,7 +4406,7 @@
|
|
|
4386
4406
|
"category": "sfall_functions",
|
|
4387
4407
|
"documentation": {
|
|
4388
4408
|
"kind": "markdown",
|
|
4389
|
-
"value": "```fallout-ssl-tooltip\nint get_light_level\n```\nReturns ambient light level in range 0
|
|
4409
|
+
"value": "```fallout-ssl-tooltip\nint get_light_level\n```\nReturns ambient light level in the range of 0 to 65536. The value returned by get_light_level may not exactly match that set by `set_light_level`, as `set_light_level` applies modifiers from the Night Vision perk."
|
|
4390
4410
|
}
|
|
4391
4411
|
},
|
|
4392
4412
|
{
|
|
@@ -4476,7 +4496,7 @@
|
|
|
4476
4496
|
"category": "sfall_functions",
|
|
4477
4497
|
"documentation": {
|
|
4478
4498
|
"kind": "markdown",
|
|
4479
|
-
"value": "```fallout-ssl-tooltip\nint get_outline(ObjectPtr obj)\n```\
|
|
4499
|
+
"value": "```fallout-ssl-tooltip\nint get_outline(ObjectPtr obj)\n```\nReturns the current outline color of an object."
|
|
4480
4500
|
}
|
|
4481
4501
|
},
|
|
4482
4502
|
{
|
|
@@ -4556,7 +4576,7 @@
|
|
|
4556
4576
|
"category": "sfall_functions",
|
|
4557
4577
|
"documentation": {
|
|
4558
4578
|
"kind": "markdown",
|
|
4559
|
-
"value": "```fallout-ssl-tooltip\nint get_script(ObjectPtr obj)\n```\
|
|
4579
|
+
"value": "```fallout-ssl-tooltip\nint get_script(ObjectPtr obj)\n```\nAccepts a pointer to an object and returns its `scriptID` (line number in `scripts.lst`), or 0 if the object is unscripted.\n- returns -1 on argument error.\n"
|
|
4560
4580
|
}
|
|
4561
4581
|
},
|
|
4562
4582
|
{
|
|
@@ -4576,7 +4596,7 @@
|
|
|
4576
4596
|
"category": "sfall_functions",
|
|
4577
4597
|
"documentation": {
|
|
4578
4598
|
"kind": "markdown",
|
|
4579
|
-
"value": "```fallout-ssl-tooltip\nmixed get_sfall_arg_at(int argNum)\n```\
|
|
4599
|
+
"value": "```fallout-ssl-tooltip\nmixed get_sfall_arg_at(int argNum)\n```\nReturns the value of hook argument with the specified argument number (first argument of hook starts from 0)"
|
|
4580
4600
|
}
|
|
4581
4601
|
},
|
|
4582
4602
|
{
|
|
@@ -4696,7 +4716,7 @@
|
|
|
4696
4716
|
"category": "sfall_functions",
|
|
4697
4717
|
"documentation": {
|
|
4698
4718
|
"kind": "markdown",
|
|
4699
|
-
"value": "```fallout-ssl-tooltip\nint get_tile_ground_fid(int tileNum, int elevation)\n```\nReturns FID of a ground tile at given tile number and elevation."
|
|
4719
|
+
"value": "```fallout-ssl-tooltip\nint get_tile_ground_fid(int tileNum, int elevation)\n```\nReturns FID of a ground tile at the given tile number and elevation."
|
|
4700
4720
|
}
|
|
4701
4721
|
},
|
|
4702
4722
|
{
|
|
@@ -4706,7 +4726,7 @@
|
|
|
4706
4726
|
"category": "sfall_functions",
|
|
4707
4727
|
"documentation": {
|
|
4708
4728
|
"kind": "markdown",
|
|
4709
|
-
"value": "```fallout-ssl-tooltip\nint get_tile_roof_fid(int tileNum, int elevation)\n```\nReturns FID of a roof tile at given tile number and elevation. Note that FID of 1 is used when there is no actual roof."
|
|
4729
|
+
"value": "```fallout-ssl-tooltip\nint get_tile_roof_fid(int tileNum, int elevation)\n```\nReturns FID of a roof tile at the given tile number and elevation. Note that FID of 1 is used when there is no actual roof."
|
|
4710
4730
|
}
|
|
4711
4731
|
},
|
|
4712
4732
|
{
|
|
@@ -4716,7 +4736,7 @@
|
|
|
4716
4736
|
"category": "sfall_functions",
|
|
4717
4737
|
"documentation": {
|
|
4718
4738
|
"kind": "markdown",
|
|
4719
|
-
"value": "```fallout-ssl-tooltip\nint get_unspent_ap_bonus\n```\
|
|
4739
|
+
"value": "```fallout-ssl-tooltip\nint get_unspent_ap_bonus\n```\nReturns the AC bonus you receive per unused action point at the end of your turn in combat. To allow for fractional values, the value given if divided by 4. (Hence the default value is 4 and not 1.)"
|
|
4720
4740
|
}
|
|
4721
4741
|
},
|
|
4722
4742
|
{
|
|
@@ -4926,7 +4946,7 @@
|
|
|
4926
4946
|
"category": "sfall_functions",
|
|
4927
4947
|
"documentation": {
|
|
4928
4948
|
"kind": "markdown",
|
|
4929
|
-
"value": "```fallout-ssl-tooltip\nvoid inc_npc_level(int party_member_pid)\n```\nTakes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party
|
|
4949
|
+
"value": "```fallout-ssl-tooltip\nvoid inc_npc_level(int party_member_pid)\n```\nTakes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party.\n- This function ignores the player's minimum level and the required number of level-ups between NPC level gains. It also ignores the random element, regardless of sfall's `NPCAutoLevel` or `PartyMemberNonRandomLevelUp` setting.\n- Starting from sfall 4.5/3.8.50, the maximum possible NPC level is 10.\n"
|
|
4930
4950
|
}
|
|
4931
4951
|
},
|
|
4932
4952
|
{
|
|
@@ -5046,7 +5066,7 @@
|
|
|
5046
5066
|
"category": "sfall_functions",
|
|
5047
5067
|
"documentation": {
|
|
5048
5068
|
"kind": "markdown",
|
|
5049
|
-
"value": "```fallout-ssl-tooltip\nvoid item_make_explosive(int pid, int activePid, int minDamage, int maxDamage)\n```\n- makes the specified item (pid) an explosive item like Dynamite or Plastic Explosives\n- `maxDamage` is optional\n- `activePid` is for an item with an active timer, can be the same as the `pid` argument\n- the item proto must be the **Misc Item** type and have the **Use** action flag\n- minDamage/maxDamage are the minimum and maximum explosion damage\n- using the function on an item that is already set as an explosive will override its previous settings\n- NOTE: this function does not work for pids of Dynamite and Plastic Explosives\n"
|
|
5069
|
+
"value": "```fallout-ssl-tooltip\nvoid item_make_explosive(int pid, int activePid, int minDamage, int maxDamage)\n```\n- makes the specified item (pid) an explosive item like Dynamite or Plastic Explosives\n- `maxDamage` is optional\n- `activePid` is for an item with an active timer, can be the same as the `pid` argument\n- the item proto must be of the **Misc Item** type and have the **Use** action flag\n- minDamage/maxDamage are the minimum and maximum explosion damage\n- using the function on an item that is already set as an explosive will override its previous settings\n- NOTE: this function does not work for pids of Dynamite and Plastic Explosives\n"
|
|
5050
5070
|
}
|
|
5051
5071
|
},
|
|
5052
5072
|
{
|
|
@@ -5056,7 +5076,7 @@
|
|
|
5056
5076
|
"category": "sfall_functions",
|
|
5057
5077
|
"documentation": {
|
|
5058
5078
|
"kind": "markdown",
|
|
5059
|
-
"value": "```fallout-ssl-tooltip\nint item_weight(ObjectPtr obj)\n```\
|
|
5079
|
+
"value": "```fallout-ssl-tooltip\nint item_weight(ObjectPtr obj)\n```\nReturns the weight of an item object."
|
|
5060
5080
|
}
|
|
5061
5081
|
},
|
|
5062
5082
|
{
|
|
@@ -5276,7 +5296,7 @@
|
|
|
5276
5296
|
"category": "sfall_functions",
|
|
5277
5297
|
"documentation": {
|
|
5278
5298
|
"kind": "markdown",
|
|
5279
|
-
"value": "```fallout-ssl-tooltip\nObjectPtr obj_blocking_line(ObjectPtr objFrom, int tileTo, int blockingType)\n```\nReturns first object which blocks direct linear path from `objFrom` to `tileTo` using selected blocking function (see `BLOCKING_TYPE_*` constants in **sfall.h**)
|
|
5299
|
+
"value": "```fallout-ssl-tooltip\nObjectPtr obj_blocking_line(ObjectPtr objFrom, int tileTo, int blockingType)\n```\nReturns the first object which blocks direct linear path from `objFrom` to `tileTo` using selected blocking function (see `BLOCKING_TYPE_*` constants in **sfall.h**).\n- If path is clear (no blocker was encountered by selected function) - returns 0.\n- `objFrom` is always excluded from calculations, but is required to be a valid object.\n"
|
|
5280
5300
|
}
|
|
5281
5301
|
},
|
|
5282
5302
|
{
|
|
@@ -5286,7 +5306,7 @@
|
|
|
5286
5306
|
"category": "sfall_functions",
|
|
5287
5307
|
"documentation": {
|
|
5288
5308
|
"kind": "markdown",
|
|
5289
|
-
"value": "```fallout-ssl-tooltip\nObjectPtr obj_blocking_tile(int tileNum, int elevation, int blockingType)\n```\nReturns first object blocking given tile using given blocking function or 0 if tile is clear."
|
|
5309
|
+
"value": "```fallout-ssl-tooltip\nObjectPtr obj_blocking_tile(int tileNum, int elevation, int blockingType)\n```\nReturns the first object blocking the given tile using the given blocking function, or 0 if the tile is clear."
|
|
5290
5310
|
}
|
|
5291
5311
|
},
|
|
5292
5312
|
{
|
|
@@ -5356,7 +5376,7 @@
|
|
|
5356
5376
|
"category": "sfall_functions",
|
|
5357
5377
|
"documentation": {
|
|
5358
5378
|
"kind": "markdown",
|
|
5359
|
-
"value": "```fallout-ssl-tooltip\narray path_find_to(ObjectPtr objFrom, int tileTo, int blockingType)\n```\nReturns the shortest path to a given tile using given blocking function as an array of tile directions (0..5) to move on each step
|
|
5379
|
+
"value": "```fallout-ssl-tooltip\narray path_find_to(ObjectPtr objFrom, int tileTo, int blockingType)\n```\nReturns the shortest path to a given tile using the given blocking function as an array of tile directions (0..5) to move on each step.\n- Array length equals to a number of steps.\n- Empty array means that specified target cannot be reached.\n"
|
|
5360
5380
|
}
|
|
5361
5381
|
},
|
|
5362
5382
|
{
|
|
@@ -5376,7 +5396,7 @@
|
|
|
5376
5396
|
"category": "sfall_functions",
|
|
5377
5397
|
"documentation": {
|
|
5378
5398
|
"kind": "markdown",
|
|
5379
|
-
"value": "```fallout-ssl-tooltip\nint play_sfall_sound(string file, int mode)\n```\nUsed to play `mp3/wav/wma` files. The path given is relative to the Fallout folder. Specify mode as 1 to loop the file continuously, 2 to replace the current background game music with playing the specified file in loop mode, or 0 to play the file once. If you don't wish to loop, `play_sfall_sound` returns 0. If you do loop, it returns an ID which can be passed back to `stop_sfall_sound` when you want to stop the effect. All sounds effects will be stopped on game reload, looping or not. Does not require `AllowDShowSound` to be set to 1 in `ddraw.ini`.\n\nStarting from sfall 4.2.8/3.8.28, you can pass a value in the `mode` argument for a reduced sound volume. To set the volume, you need to convert the number to hexadecimal and use the argument format `0xZZZZ000Y`, where `ZZZZ` is the volume reduction value in range
|
|
5399
|
+
"value": "```fallout-ssl-tooltip\nint play_sfall_sound(string file, int mode)\n```\nUsed to play `mp3/wav/wma` files. The path given is relative to the Fallout folder. Specify mode as 1 to loop the file continuously, 2 to replace the current background game music with playing the specified file in loop mode, or 0 to play the file once. If you don't wish to loop, `play_sfall_sound` returns 0. If you do loop, it returns an ID which can be passed back to `stop_sfall_sound` when you want to stop the effect. All sounds effects will be stopped on game reload, looping or not. Does not require `AllowDShowSound` to be set to 1 in `ddraw.ini`.\n\nStarting from sfall 4.2.8/3.8.28, you can pass a value in the `mode` argument for a reduced sound volume. To set the volume, you need to convert the number to hexadecimal and use the argument format `0xZZZZ000Y`, where `ZZZZ` is the volume reduction value in the range of 0 to 32767 (the value 32767 is mute), and `Y` is the playback mode.\n"
|
|
5380
5400
|
}
|
|
5381
5401
|
},
|
|
5382
5402
|
{
|
|
@@ -5516,7 +5536,7 @@
|
|
|
5516
5536
|
"category": "sfall_functions",
|
|
5517
5537
|
"documentation": {
|
|
5518
5538
|
"kind": "markdown",
|
|
5519
|
-
"value": "```fallout-ssl-tooltip\nvoid reg_anim_take_out(ObjectPtr,
|
|
5539
|
+
"value": "```fallout-ssl-tooltip\nvoid reg_anim_take_out(ObjectPtr, int weaponCode, int delay)\n```\nPlays \"take out weapon\" animation for the given `weaponCode` (see `WPN_ANIM_*` constants in **define_extra.h**).\n- It is not required for the critter to have this type of weapon in its inventory.\n"
|
|
5520
5540
|
}
|
|
5521
5541
|
},
|
|
5522
5542
|
{
|
|
@@ -5526,7 +5546,7 @@
|
|
|
5526
5546
|
"category": "sfall_functions",
|
|
5527
5547
|
"documentation": {
|
|
5528
5548
|
"kind": "markdown",
|
|
5529
|
-
"value": "```fallout-ssl-tooltip\nvoid reg_anim_turn_towards(ObjectPtr, int tile/target, delay)\n```\nMakes object change its direction to face given tile number or target object."
|
|
5549
|
+
"value": "```fallout-ssl-tooltip\nvoid reg_anim_turn_towards(ObjectPtr, int tile/target, delay)\n```\nMakes object change its direction to face the given tile number or target object."
|
|
5530
5550
|
}
|
|
5531
5551
|
},
|
|
5532
5552
|
{
|
|
@@ -6056,7 +6076,7 @@
|
|
|
6056
6076
|
"category": "sfall_functions",
|
|
6057
6077
|
"documentation": {
|
|
6058
6078
|
"kind": "markdown",
|
|
6059
|
-
"value": "```fallout-ssl-tooltip\nvoid set_flags(ObjectPtr obj, int flags)\n```\nSets the current flags of an object
|
|
6079
|
+
"value": "```fallout-ssl-tooltip\nvoid set_flags(ObjectPtr obj, int flags)\n```\nSets the current flags of an object.\n- All flags are rewritten with the given `flags` integer, so first get the current flags with `get_flags` and use `bwor`/`bwand` to set/remove specific flags.\n"
|
|
6060
6080
|
}
|
|
6061
6081
|
},
|
|
6062
6082
|
{
|
|
@@ -6106,7 +6126,7 @@
|
|
|
6106
6126
|
"category": "sfall_functions",
|
|
6107
6127
|
"documentation": {
|
|
6108
6128
|
"kind": "markdown",
|
|
6109
|
-
"value": "```fallout-ssl-tooltip\nvoid set_hit_chance_max(int percentage)\n```\nEffects all critters rather than just the player and can set the maximum in range
|
|
6129
|
+
"value": "```fallout-ssl-tooltip\nvoid set_hit_chance_max(int percentage)\n```\nEffects all critters rather than just the player and can set the maximum in the range of 0 to 999."
|
|
6110
6130
|
}
|
|
6111
6131
|
},
|
|
6112
6132
|
{
|
|
@@ -6506,7 +6526,7 @@
|
|
|
6506
6526
|
"category": "sfall_functions",
|
|
6507
6527
|
"documentation": {
|
|
6508
6528
|
"kind": "markdown",
|
|
6509
|
-
"value": "```fallout-ssl-tooltip\nvoid set_pickpocket_max(int percentage)\n```\nEffects all critters rather than just the player and can set the maximum in range
|
|
6529
|
+
"value": "```fallout-ssl-tooltip\nvoid set_pickpocket_max(int percentage)\n```\nEffects all critters rather than just the player and can set the maximum in the range of 0 to 999."
|
|
6510
6530
|
}
|
|
6511
6531
|
},
|
|
6512
6532
|
{
|
|
@@ -6596,7 +6616,7 @@
|
|
|
6596
6616
|
"category": "sfall_functions",
|
|
6597
6617
|
"documentation": {
|
|
6598
6618
|
"kind": "markdown",
|
|
6599
|
-
"value": "```fallout-ssl-tooltip\nvoid set_script(ObjectPtr obj, int scriptID)\n```\nAccepts a pointer to an object and scriptID, and applies the given script to an object (scriptID accept the same values as `create_object_sid
|
|
6619
|
+
"value": "```fallout-ssl-tooltip\nvoid set_script(ObjectPtr obj, int scriptID)\n```\nAccepts a pointer to an object and scriptID, and applies the given script to an object (scriptID accept the same values as `create_object_sid` from sfall 3.6).\n- If used on an object that is already scripted, it will remove the existing script first; you cannot have multiple scripts attached to a single object.\n- Calling `set_script` on `self_obj` will have all sorts of wacky side effects, and should be avoided.\n- If you add 0x80000000 to the scriptID when calling `set_script`, `map_enter_p_proc` will be SKIPPED. The `start` proc will always be run.\n"
|
|
6600
6620
|
}
|
|
6601
6621
|
},
|
|
6602
6622
|
{
|
|
@@ -6796,7 +6816,7 @@
|
|
|
6796
6816
|
"category": "sfall_functions",
|
|
6797
6817
|
"documentation": {
|
|
6798
6818
|
"kind": "markdown",
|
|
6799
|
-
"value": "```fallout-ssl-tooltip\nint set_unique_id(ObjectPtr object, int flag)\n```\nAssigns a unique ID number to the object and returns it. If a unique ID number has already been assigned to an object, then ID number is returned without reassignment. `flag` is optional.\n- items with unique IDs will not stack with other items of the same type in the inventory\n- to just get the current ID number of an object, use `get_object_data(object, OBJ_DATA_ID)`\n- unique ID numbers are saved in your savegame, and have a range from 0x10000000 to 0x7FFFFFFF\n- there is also a unique ID number range for the player and party members from 18000 to
|
|
6819
|
+
"value": "```fallout-ssl-tooltip\nint set_unique_id(ObjectPtr object, int flag)\n```\nAssigns a unique ID number to the object and returns it. If a unique ID number has already been assigned to an object, then ID number is returned without reassignment. `flag` is optional.\n- items with unique IDs will not stack with other items of the same type in the inventory\n- to just get the current ID number of an object, use `get_object_data(object, OBJ_DATA_ID)`\n- unique ID numbers are saved in your savegame, and have a range from 0x10000000 to 0x7FFFFFFF\n- there is also a unique ID number range for the player and party members from 18000 to 16795215\n- to assign a new ID number generated by the engine to the object (i.e. unassign a unique ID), call the function with two arguments and pass -1 for the flag argument\n"
|
|
6800
6820
|
}
|
|
6801
6821
|
},
|
|
6802
6822
|
{
|
|
@@ -6929,6 +6949,26 @@
|
|
|
6929
6949
|
"value": "```fallout-ssl-tooltip\nany sfall_func0(char* funcName)\n```\nCalls script function with given name and no arguments."
|
|
6930
6950
|
}
|
|
6931
6951
|
},
|
|
6952
|
+
{
|
|
6953
|
+
"label": "sfall_func0(\"hide_window\")",
|
|
6954
|
+
"kind": 3,
|
|
6955
|
+
"source": "builtin",
|
|
6956
|
+
"category": "sfall_functions",
|
|
6957
|
+
"documentation": {
|
|
6958
|
+
"kind": "markdown",
|
|
6959
|
+
"value": "```fallout-ssl-tooltip\nvoid sfall_func0(\"hide_window\")\n```\nHides currently active (selected) script window."
|
|
6960
|
+
}
|
|
6961
|
+
},
|
|
6962
|
+
{
|
|
6963
|
+
"label": "sfall_func0(\"show_window\")",
|
|
6964
|
+
"kind": 3,
|
|
6965
|
+
"source": "builtin",
|
|
6966
|
+
"category": "sfall_functions",
|
|
6967
|
+
"documentation": {
|
|
6968
|
+
"kind": "markdown",
|
|
6969
|
+
"value": "```fallout-ssl-tooltip\nvoid sfall_func0(\"show_window\")\n```\nDisplays the script window previously hidden with the `sfall_func0(\"hide_window\")` function."
|
|
6970
|
+
}
|
|
6971
|
+
},
|
|
6932
6972
|
{
|
|
6933
6973
|
"label": "sfall_func1",
|
|
6934
6974
|
"kind": 3,
|
|
@@ -6939,6 +6979,36 @@
|
|
|
6939
6979
|
"value": "```fallout-ssl-tooltip\nany sfall_func1(char* funcName, arg1)\n```\nCalls script function with given name and 1 argument."
|
|
6940
6980
|
}
|
|
6941
6981
|
},
|
|
6982
|
+
{
|
|
6983
|
+
"label": "sfall_func1(\"hide_window\", string winName)",
|
|
6984
|
+
"kind": 3,
|
|
6985
|
+
"source": "builtin",
|
|
6986
|
+
"category": "sfall_functions",
|
|
6987
|
+
"documentation": {
|
|
6988
|
+
"kind": "markdown",
|
|
6989
|
+
"value": "```fallout-ssl-tooltip\nvoid sfall_func0(\"hide_window\")\n```\nHides the specified script window.\n- winName: the window name, assigned to the window by the `CreateWin/create_win` function\n"
|
|
6990
|
+
}
|
|
6991
|
+
},
|
|
6992
|
+
{
|
|
6993
|
+
"label": "sfall_func1(\"remove_timer_event\", int fixedParam)",
|
|
6994
|
+
"kind": 3,
|
|
6995
|
+
"source": "builtin",
|
|
6996
|
+
"category": "sfall_functions",
|
|
6997
|
+
"documentation": {
|
|
6998
|
+
"kind": "markdown",
|
|
6999
|
+
"value": "```fallout-ssl-tooltip\nvoid sfall_func1(\"remove_timer_event\", int fixedParam)\n```\nRemoves all timer events with the specified `fixedParam` value for the current global script."
|
|
7000
|
+
}
|
|
7001
|
+
},
|
|
7002
|
+
{
|
|
7003
|
+
"label": "sfall_func1(\"show_window\", string winName)",
|
|
7004
|
+
"kind": 3,
|
|
7005
|
+
"source": "builtin",
|
|
7006
|
+
"category": "sfall_functions",
|
|
7007
|
+
"documentation": {
|
|
7008
|
+
"kind": "markdown",
|
|
7009
|
+
"value": "```fallout-ssl-tooltip\nvoid sfall_func1(\"show_window\", string winName)\n```\nDisplays the specified hidden script window.\n`winName`: the window name, assigned to the window by the `CreateWin/create_win` function\n"
|
|
7010
|
+
}
|
|
7011
|
+
},
|
|
6942
7012
|
{
|
|
6943
7013
|
"label": "sfall_func2",
|
|
6944
7014
|
"kind": 3,
|
|
@@ -6949,6 +7019,16 @@
|
|
|
6949
7019
|
"value": "```fallout-ssl-tooltip\nany sfall_func2(char* funcName, arg1, arg2)\n```\nCalls script function with given name and 2 arguments."
|
|
6950
7020
|
}
|
|
6951
7021
|
},
|
|
7022
|
+
{
|
|
7023
|
+
"label": "sfall_func2(\"string_compare\", string str1, string str2)",
|
|
7024
|
+
"kind": 3,
|
|
7025
|
+
"source": "builtin",
|
|
7026
|
+
"category": "sfall_functions",
|
|
7027
|
+
"documentation": {
|
|
7028
|
+
"kind": "markdown",
|
|
7029
|
+
"value": "```fallout-ssl-tooltip\nbool sfall_func2(\"string_compare\", string str1, string str2)\n```\nCompares two strings case-insensitive, and returns `True` if the two strings are matched."
|
|
7030
|
+
}
|
|
7031
|
+
},
|
|
6952
7032
|
{
|
|
6953
7033
|
"label": "sfall_func3",
|
|
6954
7034
|
"kind": 3,
|
|
@@ -6959,6 +7039,16 @@
|
|
|
6959
7039
|
"value": "```fallout-ssl-tooltip\nany sfall_func3(char* funcName, arg1, arg2, arg3)\n```\nCalls script function with given name and 3 arguments."
|
|
6960
7040
|
}
|
|
6961
7041
|
},
|
|
7042
|
+
{
|
|
7043
|
+
"label": "sfall_func3(\"string_compare\", string str1, string str2, int codePage)",
|
|
7044
|
+
"kind": 3,
|
|
7045
|
+
"source": "builtin",
|
|
7046
|
+
"category": "sfall_functions",
|
|
7047
|
+
"documentation": {
|
|
7048
|
+
"kind": "markdown",
|
|
7049
|
+
"value": "```fallout-ssl-tooltip\nbool sfall_func3(\"string_compare\", string str1, string str2, int codePage)\n```\nCompares two strings case-insensitive, and returns `True` if the two strings are matched\n- `codePage`: code page number to properly compare national characters in the range 128-255 of the ASCII code table\navailable encodings: 1250-1252, 866\n"
|
|
7050
|
+
}
|
|
7051
|
+
},
|
|
6962
7052
|
{
|
|
6963
7053
|
"label": "sfall_func4",
|
|
6964
7054
|
"kind": 3,
|
|
@@ -7096,7 +7186,7 @@
|
|
|
7096
7186
|
"category": "sfall_functions",
|
|
7097
7187
|
"documentation": {
|
|
7098
7188
|
"kind": "markdown",
|
|
7099
|
-
"value": "```fallout-ssl-tooltip\nint spatial_radius(ObjectPtr obj)\n```\nReturns radius of spatial script, associated with given dummy
|
|
7189
|
+
"value": "```fallout-ssl-tooltip\nint spatial_radius(ObjectPtr obj)\n```\nReturns radius of spatial script, associated with the given dummy object (returned by `create_spatial`)."
|
|
7100
7190
|
}
|
|
7101
7191
|
},
|
|
7102
7192
|
{
|
|
@@ -7106,7 +7196,7 @@
|
|
|
7106
7196
|
"category": "sfall_functions",
|
|
7107
7197
|
"documentation": {
|
|
7108
7198
|
"kind": "markdown",
|
|
7109
|
-
"value": "```fallout-ssl-tooltip\nstring sprintf(string format, any value)\n```\nFormats given value using
|
|
7199
|
+
"value": "```fallout-ssl-tooltip\nstring sprintf(string format, any value)\n```\nFormats the given value using standard syntax of C `printf` function (google \"printf\" for format details). However, it is limited to formatting only 1 value.\n- Can be used to get character by ASCII code (`%c`).\n"
|
|
7110
7200
|
}
|
|
7111
7201
|
},
|
|
7112
7202
|
{
|
|
@@ -7276,7 +7366,7 @@
|
|
|
7276
7366
|
"category": "sfall_functions",
|
|
7277
7367
|
"documentation": {
|
|
7278
7368
|
"kind": "markdown",
|
|
7279
|
-
"value": "```fallout-ssl-tooltip\narray tile_get_objs(int tileNum, int elevation)\n```\nReturns an array of all objects at given tile
|
|
7369
|
+
"value": "```fallout-ssl-tooltip\narray tile_get_objs(int tileNum, int elevation)\n```\nReturns an array of all objects at the given tile.\n- It will include any hidden, dead or system objects (like cursor), so make sure to check properly when iterating.\n"
|
|
7280
7370
|
}
|
|
7281
7371
|
},
|
|
7282
7372
|
{
|
|
@@ -7286,7 +7376,7 @@
|
|
|
7286
7376
|
"category": "sfall_functions",
|
|
7287
7377
|
"documentation": {
|
|
7288
7378
|
"kind": "markdown",
|
|
7289
|
-
"value": "```fallout-ssl-tooltip\nint tile_light(int elevation, int tileNum)\n```\nReturns light intensity at the given tile in range
|
|
7379
|
+
"value": "```fallout-ssl-tooltip\nint tile_light(int elevation, int tileNum)\n```\nReturns light intensity at the given tile in the range of 0 to 65536."
|
|
7290
7380
|
}
|
|
7291
7381
|
},
|
|
7292
7382
|
{
|
|
@@ -7349,6 +7439,16 @@
|
|
|
7349
7439
|
"value": "```fallout-ssl-tooltip\nvoid sfall_func2(\"unwield_slot\", object critter, int slot)\n```\nunequips an item from the specified slot for a critter or the player\ncan take off player's equipped item when the inventory is opened, or the player is in the barter screen\nslot: 0 - armor slot, 1 - right slot, 2 - left slot (see `INVEN_TYPE_*` in **define.h**)\n"
|
|
7350
7440
|
}
|
|
7351
7441
|
},
|
|
7442
|
+
{
|
|
7443
|
+
"label": "void sfall_func0(\"remove_timer_event\")",
|
|
7444
|
+
"kind": 3,
|
|
7445
|
+
"source": "builtin",
|
|
7446
|
+
"category": "sfall_functions",
|
|
7447
|
+
"documentation": {
|
|
7448
|
+
"kind": "markdown",
|
|
7449
|
+
"value": "```fallout-ssl-tooltip\nvoid sfall_func0(\"remove_timer_event\")\n```\nClears all set timer events for the current global script."
|
|
7450
|
+
}
|
|
7451
|
+
},
|
|
7352
7452
|
{
|
|
7353
7453
|
"label": "win_fill_color",
|
|
7354
7454
|
"kind": 3,
|
|
@@ -1697,7 +1697,7 @@
|
|
|
1697
1697
|
"category": "actions",
|
|
1698
1698
|
"documentation": {
|
|
1699
1699
|
"kind": "markdown",
|
|
1700
|
-
"value": "```weidu-baf-tooltip\nIncrementChapter(S:RESREF)\n```\nThis action is used to increment the chapter, and display a text screen (specified by the resref parameter - a 2DA file).
|
|
1700
|
+
"value": "```weidu-baf-tooltip\nIncrementChapter(S:RESREF)\n```\nThis action is used to increment the chapter, and display a text screen (specified by the resref parameter - a 2DA file).\nIn IWD the resref is ignored and the text instead comes from the references in [chapters.2da](https://gibberlings3.github.io/iesdp/files/2da/2da_tob/chapters.htm)\nThe example script is from ar1803.bcs.\n```\nIF\n Dead(\"Davaeorn\")\n Global(\"Chapter\",\"GLOBAL\",4)\nTHEN\n RESPONSE #100\n RevealAreaOnMap(\"AR0900\")\n IncrementChapter(\"Chptxt5\")\n AddJournalEntry(15839,USER)\nEND\n```"
|
|
1701
1701
|
}
|
|
1702
1702
|
},
|
|
1703
1703
|
{
|
|
@@ -2387,7 +2387,7 @@
|
|
|
2387
2387
|
"category": "actions",
|
|
2388
2388
|
"documentation": {
|
|
2389
2389
|
"kind": "markdown",
|
|
2390
|
-
"value": "```weidu-baf-tooltip\nRandomTurn()\n```\nThis action causes the active creature to turn in a random direction. The example script is from waitturn.bcs.\n```\nIF\n True()\nTHEN\n RESPONSE #100\n RandomTurn()\nEND\n```\n\n* This action will never stop, (unless interrupted in specific situations), and thus never leave the action list.\n* Executes [Wait()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#63) for a random amount of time, (1
|
|
2390
|
+
"value": "```weidu-baf-tooltip\nRandomTurn()\n```\nThis action causes the active creature to turn in a random direction. The example script is from waitturn.bcs.\n```\nIF\n True()\nTHEN\n RESPONSE #100\n RandomTurn()\nEND\n```\n\n* This action will never stop, (unless interrupted in specific situations), and thus never leave the action list.\n* Executes [Wait()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#63) for a random amount of time, (1–40 seconds), if the creature goes off-screen.\n* Waits 1–10 seconds between each evaluation.\n"
|
|
2391
2391
|
}
|
|
2392
2392
|
},
|
|
2393
2393
|
{
|
|
@@ -2397,7 +2397,7 @@
|
|
|
2397
2397
|
"category": "actions",
|
|
2398
2398
|
"documentation": {
|
|
2399
2399
|
"kind": "markdown",
|
|
2400
|
-
"value": "```weidu-baf-tooltip\nRandomWalk()\n```\nThis action causes the active creature to walk randomly, staying within the current area. The example script is blbear.bcs; it instructs bears to walk rather than fight if the nearest enemy is a druid.\n```\nIF\n Delay(5)\n See(NearestEnemyOf(Myself))\n Class(NearestEnemyOf(Myself),DRUID)\n NumCreatureGT([ENEMY],1)\nTHEN\n RESPONSE #100\n RandomWalk()\nEND\n```\n\n* This action will never stop, (unless interrupted in specific situations), and thus never leave the action list.\n* Executes [Wait()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#63) for a random amount of time, (1
|
|
2400
|
+
"value": "```weidu-baf-tooltip\nRandomWalk()\n```\nThis action causes the active creature to walk randomly, staying within the current area. The example script is blbear.bcs; it instructs bears to walk rather than fight if the nearest enemy is a druid.\n```\nIF\n Delay(5)\n See(NearestEnemyOf(Myself))\n Class(NearestEnemyOf(Myself),DRUID)\n NumCreatureGT([ENEMY],1)\nTHEN\n RESPONSE #100\n RandomWalk()\nEND\n```\n\n* This action will never stop, (unless interrupted in specific situations), and thus never leave the action list.\n* Executes [Wait()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#63) for a random amount of time, (1–40 seconds), if the creature goes off-screen.\n* Has a 50/50 chance to [MoveToPoint()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#23), or do a pass of [RandomTurn()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#130), (including [RandomTurn()](https://gibberlings3.github.io/iesdp/scripting/actions/bg2actions.htm#130)'s wait time).\n"
|
|
2401
2401
|
}
|
|
2402
2402
|
},
|
|
2403
2403
|
{
|
|
@@ -1709,7 +1709,7 @@
|
|
|
1709
1709
|
"category": "component_flag",
|
|
1710
1710
|
"documentation": {
|
|
1711
1711
|
"kind": "markdown",
|
|
1712
|
-
"value": "```weidu-tp2-tooltip\nNO_LOG_RECORD\n```\nNormally all module components are recorded in WeiDU.log and can be uninstalled later. This component flag prevents this component from writing a log record when it is successfully installed. As a result it is "invisible" to WeiDU, can be installed multiple times, and cannot be uninstalled with WeiDU. Do not use this flag without a real reason."
|
|
1712
|
+
"value": "```weidu-tp2-tooltip\nNO_LOG_RECORD\n```\nNormally all module components are recorded in WeiDU.log and can be uninstalled later. This component flag prevents this component from writing a log record when it is successfully installed. As a result it is \"invisible\" to WeiDU, can be installed multiple times, and cannot be uninstalled with WeiDU. Do not use this flag without a real reason."
|
|
1713
1713
|
}
|
|
1714
1714
|
},
|
|
1715
1715
|
{
|