Daemonjax Posted September 1, 2015 Share Posted September 1, 2015 (edited) 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 September 2, 2015 by Daemonjax Link to comment Share on other sites More sharing options...
hollaajith Posted September 2, 2015 Share Posted September 2, 2015 Check here. Link to comment Share on other sites More sharing options...
Daemonjax Posted September 2, 2015 Author Share Posted September 2, 2015 (edited) I can't login to those forums to post in that thread, so I posted here in the hope one of the code maintainers would see it one day. Edited September 2, 2015 by Daemonjax Link to comment Share on other sites More sharing options...
Dragon32 Posted September 2, 2015 Share Posted September 2, 2015 Posted this over there Link to comment Share on other sites More sharing options...
Daemonjax Posted September 3, 2015 Author Share Posted September 3, 2015 (edited) 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 September 3, 2015 by Daemonjax Link to comment Share on other sites More sharing options...
Recommended Posts