Jump to content


Photo

326 bit equality


3 replies to this topic

#1 Aquadrizzt

Aquadrizzt
  • Modders
  • 93 posts
  • Gender:Male

Posted 27 March 2017 - 02:09 PM

I seem to be running into a bit of an issue using the bit comparator functions available via splprot.2da. 

 

For example, I have a spell that I want to check the first bit of stat 134 (extraprof20). I have set this stat to 1 in a separate instance. 

 

My splprot line looks as follows

CK_134_BIT1    134    1      8 

 

The spell seems to not fire at all, but does fire when I change the comparator from bit_match (8) to >= (4). 


Tome and Blood: Expanded Options for Arcane Spellcasters 
 
Monastic Orders of Faerun: Expanded Options for Monks 

#2 kjeron

kjeron
  • Members
  • 34 posts

Posted 27 March 2017 - 02:31 PM

Is anything else altering stat 134, if so how?



#3 Aquadrizzt

Aquadrizzt
  • Modders
  • 93 posts
  • Gender:Male

Posted 27 March 2017 - 03:18 PM

Not to my knowledge. For now I'm just using spell states to do this instead, but I'd like to know if this could be usable in the future.  
 

I'm pretty sure I checked with equality (=,1) earlier and it fired then as well. 


Tome and Blood: Expanded Options for Arcane Spellcasters 
 
Monastic Orders of Faerun: Expanded Options for Monks 

#4 kjeron

kjeron
  • Members
  • 34 posts

Posted 27 March 2017 - 03:35 PM

I've not had any issues using the Bit comparisons, even done some rather complex ones with the proficiency stats, so I can only suggest that there is something else interfering here.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users