Skip to content

Commit

Permalink
Regenerate data.
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Mar 24, 2024
1 parent e2c35c9 commit 3c349b7
Show file tree
Hide file tree
Showing 7 changed files with 376 additions and 219 deletions.
273 changes: 177 additions & 96 deletions server/out/completion.fallout-ssl.json

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions server/out/completion.weidu-baf.json
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-baf-tooltip\nEnemy()\n```\nThis action is used to change the allegiance of the active creature to enemy (making them hostile to the PC). This example script, from a peasant, will turn the creature hostile if it is attacked.\n\n```\nIF\n AttackedBy([GOODCUTOFF],Myself)\n Allegiance(Myself,NEUTRAL)\nTHEN\n RESPONSE #100\n Enemy()\nEND\n```"
"value": "```weidu-baf-tooltip\nEnemy()\n```\nThis action is used to change the allegiance of the active creature to enemy (making them hostile to the PC). This example script, from a peasant, will turn the creature hostile if it is attacked.\n\n```\nIF\n AttackedBy([GOODCUTOFF],DEFAULT)\n Allegiance(Myself,NEUTRAL)\nTHEN\n RESPONSE #100\n Enemy()\nEND\n```"
}
},
{
Expand Down Expand Up @@ -3438,7 +3438,16 @@
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-baf-tooltip\nUseItem(S:Object, O:Target)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```"
"value": "```weidu-baf-tooltip\nUseItem(S:Object, O:Target)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```\n\nIWDEE supports also the `UseItemAbility` signature:\n```\nIF\n !StateCheck(Myself,STATE_MIRRORIMAGE)\n GlobalLT(\"MO_UsedIlbratha\",\"GLOBAL\",1)\n HasItemEquiped(\"SW1H26\",Myself) // Ilbratha +1\nTHEN\n RESPONSE #100\n SetInterrupt(FALSE)\n UseItemAbility(\"SW1H26\",Myself,SLOT_AMMO3,1) // Ilbratha +1\n SetInterrupt(TRUE)\n IncrementGlobal(\"MO_UsedIlbratha\",\"GLOBAL\",1)\nEND\n```"
}
},
{
"label": "UseItemAbility",
"kind": 3,
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-baf-tooltip\nUseItemAbility(S:Object, O:Target, I:Slot, I:Ability)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```\n\nIWDEE supports also the `UseItemAbility` signature:\n```\nIF\n !StateCheck(Myself,STATE_MIRRORIMAGE)\n GlobalLT(\"MO_UsedIlbratha\",\"GLOBAL\",1)\n HasItemEquiped(\"SW1H26\",Myself) // Ilbratha +1\nTHEN\n RESPONSE #100\n SetInterrupt(FALSE)\n UseItemAbility(\"SW1H26\",Myself,SLOT_AMMO3,1) // Ilbratha +1\n SetInterrupt(TRUE)\n IncrementGlobal(\"MO_UsedIlbratha\",\"GLOBAL\",1)\nEND\n```"
}
},
{
Expand All @@ -3447,7 +3456,7 @@
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-baf-tooltip\nUseItemSlot(O:Target, I:Slot)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```"
"value": "```weidu-baf-tooltip\nUseItemSlot(O:Target, I:Slot)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```\n\nIWDEE supports also the `UseItemAbility` signature:\n```\nIF\n !StateCheck(Myself,STATE_MIRRORIMAGE)\n GlobalLT(\"MO_UsedIlbratha\",\"GLOBAL\",1)\n HasItemEquiped(\"SW1H26\",Myself) // Ilbratha +1\nTHEN\n RESPONSE #100\n SetInterrupt(FALSE)\n UseItemAbility(\"SW1H26\",Myself,SLOT_AMMO3,1) // Ilbratha +1\n SetInterrupt(TRUE)\n IncrementGlobal(\"MO_UsedIlbratha\",\"GLOBAL\",1)\nEND\n```"
}
},
{
Expand All @@ -3456,7 +3465,7 @@
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-baf-tooltip\nUseItemSlotAbility(O:Target, I:Slot, I:Ability)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```"
"value": "```weidu-baf-tooltip\nUseItemSlotAbility(O:Target, I:Slot, I:Ability)\n```\nThis action instructs the active creature to use the specified item (object) on the specified target (target). The ability number (i.e. extended header index) to use may be specified. This action is most often used to allow use of potions and wands. The item to be used must exist in the active creature's inventory (not in a container within the inventory) - though it need not be equipped.\n\n```\nIF\n HPPercentLT(Myself,50)\n HasItem(\"potn52\",Myself)\nTHEN\n RESPONSE #100\n DisplayStringHead(Myself,46150) //quaffs a potion\n UseItem(\"potn52\",Myself)\n Continue()\nEND\n```\n\nIWDEE supports also the `UseItemAbility` signature:\n```\nIF\n !StateCheck(Myself,STATE_MIRRORIMAGE)\n GlobalLT(\"MO_UsedIlbratha\",\"GLOBAL\",1)\n HasItemEquiped(\"SW1H26\",Myself) // Ilbratha +1\nTHEN\n RESPONSE #100\n SetInterrupt(FALSE)\n UseItemAbility(\"SW1H26\",Myself,SLOT_AMMO3,1) // Ilbratha +1\n SetInterrupt(TRUE)\n IncrementGlobal(\"MO_UsedIlbratha\",\"GLOBAL\",1)\nEND\n```"
}
},
{
Expand Down
29 changes: 19 additions & 10 deletions server/out/completion.weidu-tp2.json
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-tp2-tooltip\nADD_PROJECTILE modpath/PROName.PRO\n```\nAppends an entry for PROName to PROJECTL.IDS and assigns it the next available ProRef number. Then copies the file modpath/PROName.PRO to the override folder. The new ProRef number can be accessed through the variable %PROName% and used to updated the Projectile type field of an ITM or SPL file's Item Ability or Spell Ability sub-structures."
"value": "```weidu-tp2-tooltip\nADD_PROJECTILE modpath/PROName.PRO [idsName]\n```\nAppends an entry for PROName to PROJECTL.IDS and assigns it the next available ProRef number. Then copies the file modpath/PROName.PRO to the override folder. The new ProRef number can be accessed through the variable %PROName% and used to updated the Projectile type field of an ITM or SPL file's Item Ability or Spell Ability sub-structures.\nIf `idsName` is specified, then it will give the projectile the name `idsName` in `MISSILE.IDS`."
}
},
{
Expand Down Expand Up @@ -3746,6 +3746,15 @@
"value": "```weidu-tp2-tooltip\n%WEIDU_ARCH%\n```\nThe special variable WEIDU_ARCH is set to either \"x86\", \"amd64\" or \"mac\" at WeiDU startup and can be used to determine the architecture of the WeiDU binary."
}
},
{
"label": "%WEIDU_EXECUTABLE%",
"kind": 14,
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-tp2-tooltip\n%WEIDU_EXECUTABLE%\n```\nThe special variable WEIDU_EXECUTABLE contains the full path of the current WeiDU binary."
}
},
{
"label": "%WEIDU_OS%",
"kind": 14,
Expand Down Expand Up @@ -7094,6 +7103,15 @@
"value": "```weidu-tp2-tooltip\ndword offset ITM_weight = 0x4c\n```\nWeight"
}
},
{
"label": "SPL_description",
"kind": 21,
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-tp2-tooltip\ndword offset SPL_description = 0x50\n```\nSpell Description"
}
},
{
"label": "SPL_exclusion_flags",
"kind": 21,
Expand Down Expand Up @@ -7139,15 +7157,6 @@
"value": "```weidu-tp2-tooltip\ndword offset SPL_level = 0x34\n```\n<b><a name=\"splv1_Header_0x34\">Spell Level</a></b>\n\n- There is no good reason for a <code><a href=\"#splv1_Header_0x1C_0\">Special</a></code>/<code><a href=\"#splv1_Header_0x1C_3\">Psionic</a></code>/<code><a href=\"#splv1_Header_0x1C_4\">Innate</a></code>/<code><a href=\"#splv1_Header_0x1C_5\">Bard song</a></code> to be any <code><a href=\"#splv1_Header_0x34\">Spell level</a></code> except `1`.\n- If the SPL is never <a href=\"../../opcodes/bgee.htm#op147\">learned</a>/<a href=\"../../opcodes/bgee.htm#op171\">gained</a> (only force-cast by script/opcode), <code><a href=\"#splv1_Header_0x34\">Spell level</a></code> doesn't matter, but there may be some niche cases that check it (f.i. <code><a href=\"../../scripting/triggers/bgeetriggers.htm#0x4031\">HaveSpell()</a></code>)."
}
},
{
"label": "SPL_unidentified_description",
"kind": 21,
"source": "builtin",
"documentation": {
"kind": "markdown",
"value": "```weidu-tp2-tooltip\ndword offset SPL_unidentified_description = 0x50\n```\nSpell Description - Unidentified (strref)"
}
},
{
"label": "SPL_unidentified_name",
"kind": 21,
Expand Down
Loading

0 comments on commit 3c349b7

Please sign in to comment.