Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  Flagsets v1.3 by Axe
Author  Axe Murderer
Submitted / Updated  06-27-2004 / 11-22-2006
Category  Scripting routines
Expansions  NWN-1.62
Format  Code Only
Type  Type - Other
Includes  BioWare Standard
Description
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.

Files

NameTypeSizeDownloads
NWNFlagsetsv1.10byAxe.zipNWNFlagsetsv1.10byAxe.zip
Submitted: 06-27-2004 / Last Updated: 08-10-2004
zip15.28Kb362
This is version 1.1 only.
NWN_Flagsets_v1.20_by_Axe.zipNWN_Flagsets_v1.20_by_Axe.zip
Submitted: 06-27-2004 / Last Updated: 02-04-2006
zip15.48Kb207
This is version 1.1 & 1.2 only.
NWN_Flagsets_v1.30_by_Axe.zipNWN_Flagsets_v1.30_by_Axe.zip
Submitted: 06-27-2004 / Last Updated: 04-09-2006
zip15.56Kb352
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.
SCORE OUT OF 10
10
9 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (10):

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.



_________________________
Carcerian/Saduj's Submissions: (169 Portrait/Soundset Unlocker) (12 NWN Fonts) (30 NWN Fonts) (Auto-Emotes) (Custom Dragon Disciples) (Dynamic Wildshape) (Keyring) (NPC Schedules) (Sacred Shields) (Spawning Undead) (Shayans Subrace Engine for 169)

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

_________________________
[ dla ][ united colors ][ player's handbook ][ other submissions ]

Posted by Balkur at 2005-01-17 08:16:00    Voted 10.00 on 01/17/05
Nice. Very nice :)

This is now one of my 3 all time favorite general utility libraries for NW script.

Thanks for releasing this!

Posted by Balkur at 2005-01-17 08:04:46    Voted 10.00 on 01/17/05
This is incredibly useful. Great job!

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Gameworlds


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters