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  Carcerian's Color Text Functions v1.3
Author  Carcerian
Submitted / Updated  04-02-2008 / 07-02-2012
Category  Scripting routines
Expansions  NWN-1.69
Format  Module and Code
Type  Type - Combat
Description
A few functions to add color to your Mod.

Color Tokens : (or use 3-Digit acsii codes)

amber
aqua
azure
beige
black
blue
brown
cerulean
crimson
cyan
darkgrey
emerald
flesh
gold
green
grey
ivory
jade
lavender
lemon
lightgrey
lime
midnight
navy
orange
peach
plum
pink
purple
random
rose
silver
skyblue
slate
tan
tangerine
turquoise
violet
white
wood
yellow

Functions: ColorText(), ChaoticText(), JumbledText(), RGBColorText(), RGB(), ASCII(), ASCIIToInt(), HiInt(), LoInt()

Also includes several intensity constants for making you own color tokens, as well as TEXT_COLOR_* constants.

Demo Requires Sou+HotU 1.68

v1.1 Reworked "random" token to avoid dark colors.

v1.2 Added JumbledText(), to display text with random shades falling between two colors.
Renamed RainbowText() to ChaoticText(). Added HiInt() and LoInt().
Added RGBColorText() Function.
Added ASCIIToInt() Function.
Added TEXT_COLOR_* Constants.

v1.3 Fixed error regarding use of 3-Digit keywords, keywords changed : "red" to "rose" and "tan" to beige"

Files

NameTypeSizeDownloads
Carcerians_Color_Text1.3.zipCarcerians_Color_Text1.3.zip
Submitted: 04-02-2008 / Last Updated: 06-24-2012
zip126.5Kb328
Carcerian's Color Text Functions v1.3
SCORE OUT OF 10
9.63
4 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





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

Posted by Saduj at 2012-06-24 14:15:51    Voted 10.00 on 06/24/12
v1.3 Fixed error regarding use of 3-Digit keywords, keywords changed : "red" to "rose" and "tan" to beige"
_________________________
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 Saduj at 2008-08-17 00:14:33    Voted 10.00 on 06/24/12
Thx for all suggestions, :)
_________________________
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 Skitzo at 2008-07-28 23:18:22    Voted 9.50 on 07/28/08
Excellent script, thanks.
I agree with Kamiryn's comment.
_________________________
NWN2 voicesets for NWN1

Posted by gs-Gamespy at 2008-04-22 00:08:35    Voted 10.00 on 04/22/08
Nice. :)

Posted by Kamiryn at 2008-04-04 15:20:54    Voted 9.00 on 04/04/08
Good idea! I've made similar things for my own projects but without uploading them as seperate files.

More than once I was thinking why Bioware did not make an ASCII(i) function. Did not knew how do it and actually it's so simple (not sure if it's your idea but nevertheless thank you).

Btw there seems to be a small bug in the ASCII function: while you check for values smaller than 0 or greater than 255 you still use the original value in GetSubString().

The only thing I would probably made differently is the ColorText function: I would use integers as colorcode and define some constants for the main colors (red = 16711680, blue = 255, green = 65280, perhaps random = -1). These constants could be used more or lesse directly to create the color codes (without lots of 'if/else if' or 'switch/case' statements.

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 Visual Effects


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