PSTEE Engine Quirks
Aquadrizzt
Member Posts: 1,065
As I work on my various Planescape mods, I come across pieces of information about the functionality of the engine. Here are some interesting things I have discovered
I'm curious to see what interesting engine behavior other people have found.
- Unused Opcodes That Work: Timestop, Use Any Item
- Unused Opcodes That Don't Work: Find Traps, Improved Alacrity, Haste, Create Magical Weapon, Fist Thac0 Bonus, Fist Damage Bonus, Modify Visual Range
- The engine does support the addition of new Mage and Priest spells as long as you remember to ADD_SPELL_EX them and update spells.2da.
- The trigger condition for items in store files (offset 0x001c in the Items for Sale extended header) cannot contain an Or() statement.
- The store interface will place conditionally available items above unconditionally available items. The order of these within the .sto file is respected within these two groups.
I'm curious to see what interesting engine behavior other people have found.
Post edited by Aquadrizzt on
0
Comments
The SpellCast*() triggers don't seem to work in PST:EE, which includes
You can avoid this by having the damage effect applied via a sub resource and having the save be placed on the 177/326 effect that applies the sub resource.
All invisibility is removed upon attack.
Many of the existing projectiles are hardcoded, although there are a few ones that can be modified. (Thanks to Bubb for getting the list of hardcoded projectiles indices.)
An updated version of PROJECTL.ids is copied here.
EDIT: The CLAB files of interest are CLABFI01.2da (Fighter), CLABTH01.2da (Thief), CLABMA01.2da (Mage), and CLABPR01.2da (Priest).
Note that Planescape's default special abilities menu does NOT allow for special abilities to be added to creatures it doesn't expect (e.g. you couldn't give Morte's Litany of Curses to TNO, or Sensory Touch to anyone but TNO or Grace). This can be fixed with the following code.
Be aware that this will disable access to Thief abilities (Stealth, Thieving, Find Traps) without further hacking, such as the following, which has the dialog button on the default interface open up a Thief action bar.