Jump to content

Photo

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


4 replies to this topic

#1 Bartimaeus

Bartimaeus
  • Members
  • 263 posts
  • Gender:Not Telling

Posted 08 January 2018 - 04:18 PM

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.dropboxus...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.dropboxus...nd of Frost.zip

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

Edited by Bartimaeus, 08 January 2018 - 04:22 PM.


#2 kjeron

kjeron
  • Members
  • 118 posts

Posted 08 January 2018 - 05:15 PM

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.



#3 Bartimaeus

Bartimaeus
  • Members
  • 263 posts
  • Gender:Not Telling

Posted 09 January 2018 - 02:44 AM

That's so weird, I thought I already tried that, but I guess unlike for .itms, .spls don't get refreshed when you reload a game - have to restart for the effects to take place. Thank you very much.

#4 Galactygon

Galactygon

    Nostradoctopus

  • Modders
  • 728 posts
  • Gender:Male
  • Location:Sweden

Posted 09 January 2018 - 09:40 AM

I believe you need a caster and a target creature for a scorcher-type projectile whose two endpoints move with the caster & target.


Posted Image

Posted Image

#5 lynx

lynx
  • Modders
  • 3119 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 09 January 2018 - 09:51 AM

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?


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Play android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users