Jump to content

MWSE function request


Daemonjax

Recommended Posts

An xGetCellFlags Function would be cool.

 

It could just return a short integer, and we could test it against a bitmask. xBitMask would just AND the two arguements... so I guess it could just be called xAnd to make it more generalized.

 

For example:

short foo
short bar
 
setx foo to xGetCellFlags   ;get current cell flags
setx bar to xBitMask foo 4 ;going from memory here -- I think the is_illegal cell flag was the 3rd bit from the right: 2^(_3_ - 1)  =  4
 
if  ( bar )
    ;it's illegal to sleep here 
endif
Edited by Daemonjax
Link to comment
Share on other sites

Cool, thanks.

 

If Merzasphor never gets around it, I already came up with a workable solution (using a parser I wrote in java to scrape tes3cmd output to create a list of interior cells where it's illegal to rest in that's readable by mwse file i/o functions), but being able to directly access the cell flags would be much cleaner. I also would prefer not using while loops.

Edited by Daemonjax
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...