The advanced features of this system are probably not for noobies or those that don't have a working knowledge of Binary and hexidecimal numbering systems. I have tried to make the basics as noob friendly as I had time to.
I call them flag-sets. Using them will help you take a huge bite out of the number of local variables required to run a module. They allow you to encode a single integer variable to hold several items of information. You can really stuff a lot of info into these things.
The system adds 2 new local variable types to the list of things you can store on an object: the flag and the group flag. Group flags can be treated as a set of flags or as a single numeric value (>= 0).
See the user's guide that accompanies this erf for instructions on how to use this package.
Version 1.1 Fixed a bug with FlagToString and GroupFlagToString so they work now.
Version 1.2 Fixed a bug with the GroupFlagValue functions that occurred when the group flag included the sign bit.
Version 1.3 Made FlagToString & GroupFlagToString 4 times more efficient. They use 4 times fewer instructions to run making it less likely to get TMIs with them.
See the user's guide that accompanies this erf for instructions on how to use this package. This file includes all versions 1.1, 1.2, and 1.3.
Version 1.1
Fixed a bug with FlagToString and GroupFlagToString so they work now.
Version 1.2
Fixed a bug with the GroupFlagValue functions when the sign bit was involved as part of the group flag.
Version 1.3
Made FlagToString & GroupFlagToString 4 times more efficient. They use 4 times fewer instructions to run making it less likely to get TMIs with them.
Posted by Squatting Monk at 2009-03-19 21:26:53 Voted 10.00 on 03/19/09
Just started using this. Very well documented and takes the tedious-ness out of bitwise storage. Thanks, Axe! :) _________________________ Shadows & Silver PW Development Blog
Posted by Saduj at 2009-02-08 05:16:00 Voted 10.00 on 02/08/09
A very fundamental concept, and thus it's a "can't live without" for any scripter who needs to optimize their code.
Posted by Blasco-Yang at 2007-08-18 19:06:49 Voted 10.00 on 08/18/07
Excellent. Just what I was looking for.
Posted by DMLadyAbagail at 2006-04-19 22:18:47 Voted 10.00 on 04/19/06
This is just a huge contribution of brilliant programming. It will really help bridge the gap between novice scripters and true programming experience. _________________________ "Pudding can't fill the emptiness inside me...but it will help!"
Posted by Parat at 2006-02-05 02:54:38 Voted 10.00 on 02/05/06
Been using that for quite a while now on the PW project "Weltentor". It's by far our most useful and most-used scripting routine.
Version 1.2 fixes a minor glitch we stumbled upon. Every group that includes the 32nd flag (resp de first bit) form returns a negative value if the 32nd flag is set. One was able to work around it, but now even this is fixec.
What can I say? I love this thing. :) Started using it when we already were working with ints for quite a while. So, we replaced any int variable using "Search all scripts". Quite much work, but it was worth it.
And it would be worth it, even it it wasn't freeing up ressources, because it forces you to work more structurized.
Posted by The Kari Saratasia at 2006-02-04 17:16:46 Voted 9.75 on 02/04/06
One of the most original things I've seen in the vault since area clean-up scripts started getting old. A nice simple idea and well executed, clean scripting and a saviour for resource hogging PW's.
Just to let ya know, your script may be considered for addition to the Blood of Britain project.
Thank you for the addition. _________________________ The Kari, Saynye Saratasia
- Land of Lost Legends
- World of Anvarath
Posted by The Kari Saratasia at 2006-02-04 17:11:09 Voted 9.75 on 02/04/06
One of the most original things I've seen in the vault since area clean-up scripts started getting old. A nice simple idea and well executed, clean scripting and a saviour for resource hogging PW's.
Thank you for the addition. _________________________ The Kari, Saynye Saratasia
- Land of Lost Legends
- World of Anvarath
Posted by gaoneng at 2005-04-16 02:35:05 Voted 10.00 on 04/16/05