Jump to content

Cast Spell at Point [148] and Wands Not Always Working


Recommended Posts

Basically, I have a Wand of Frost that doesn't seem to always work. It likes to work when using it within about a 9' radius or less, but will not work at about a 10' radius or more. It immediately starts to work when I set the 148 opcode to type 0 (cast normally) instead of 1 (cast instantly), but it's a wand: the former type causes the user to do a casting animation, which wands shouldn't do. Not the end of the world, but it puzzles me as to why this is happening.

 

Here's a video to demonstrate: https://dl.dropboxusercontent.com/s/tahi46lc5hmyb1m/2018-01-08_18-17-28.mp4

 

Happens in both Enhanced and non-Enhanced games (and I've tested in unmodded BG2:EE to see if that made any difference - it did not). Also facing a similar problem with a Wand of Monster Summoning. I thought it was maybe something to do with the projectile (possibly still true, but the conecold projectile has an area of effect of 35' in unmodded BG2EE...), but monster summoning doesn't use a projectile, so why would the same thing be occurring? Here are the relevant .itm and .spl files: https://dl.dropboxusercontent.com/s/kg1mlypb27mtshe/Wand%20of%20Frost.zip

 

Anyone have any ideas as to what exactly is going on?

Edited by Bartimaeus
Link to post

When using Opcode 148 and Parameter2=1 (Instant), it is limited by the casting range of the spell to be cast. It's the same limitation as sequencer activation being out of range for the spells it will cast.

Extend the range of the spell at least +3 over the range of the wand.

Activating an item and casting a spell normally are given an extra ~2 feet of range, which is not given when range is checked by these opcodes, which will result in you being out of range if you attempt to use it at maximum range of the wand.

Link to post

When using Opcode 148 and Parameter2=1 (Instant), it is limited by the casting range of the spell to be cast. It's the same limitation as sequencer activation being out of range for the spells it will cast.

Extend the range of the spell at least +3 over the range of the wand.

Activating an item and casting a spell normally are given an extra ~2 feet of range, which is not given when range is checked by these opcodes, which will result in you being out of range if you attempt to use it at maximum range of the wand.

Is there some good info available how ingame pixel distances relate to the "feet" in projectiles / spell descriptions?

Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...