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  RiffRaff's Tag Based Scripting Tools
Author  RiffRaff
Submitted / Updated  09-15-2006 / 11-22-2006
Category  Scripting routines
Expansions  HOTU-1.67
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Other
Includes  Custom
Description
This packge includes 3 include files that can be used to make tag based scripting much less complicated.

rr_tagbased:

This script allows generic functions to be used to acquire objects. GetPC(), GetItem(), and GetTarget() are all "event independant". When you use GetPC(), you always get the current PC being addressed by the current event.

Also allowed is event encapsulation. An example is ExitNotOnHitCast(). You just use this function and the event you are using is set. (no more switch statements) Just use like this

if(ExitNotOnHitCast()) return;



rr_debug:

This script allows you to send debug data to the screen so you can see why your tagbased scripts aren't working (if you have problems)

rr_loops:

This script presents some commonly used loops that you might find convenient.


Files

NameTypeSizeDownloads
Tag_Based_Script_Tools.modTag_Based_Script_Tools.mod
Submitted: 09-15-2006 / Last Updated: 09-17-2006
mod56.6Kb107
Example mod with Divine Fury Debugging Katana and Throwing Daggers of Immolation.
rr_tagbased.erfrr_tagbased.erf
Submitted: 09-15-2006 / Last Updated: 09-17-2006
erf14.42Kb119
All 3 scripts: rr_tagbased, rr_debug, rr_loops
SCORE OUT OF 10
10
1 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 (9):

Posted by RapidDeployment at 2006-09-30 22:24:31    Voted 10.00 on 09/30/06
Thanks for the fix Riffraff :)
_________________________
I am 9fires.In Hell I burn in flames. So cold inside the fires heals the pain.

Posted by riffraff at 2006-09-17 12:08:08    
OK, it's fixed, thanks for the bug report Talmud!
_________________________
My Submissions

Posted by riffraff at 2006-09-17 08:42:54    
Oh man, now I see wht you mean Talmud, my design is flawed. The exitnotcast functions only return in their own scope, they would need to return a varible to be checked in the calling functions (ooooops!)
_________________________
My Submissions

Posted by riffraff at 2006-09-17 08:37:28    
Talmud:

The ExitNot functions encapsulate tag-based scripting events. What that means is that if you want to only script for an onequip event, then running the ExitNotEquip function causes every other tag-based scripting event (unequip onhitcast activate etc) to exit without executing any further code. In this way, you can avoid a switch statement.

If you have ever done tag-based scripting, this should make sense to you. You know, the big switch statement that lists every event possible for tag-based scripting?
_________________________
My Submissions

Posted by Talmud at 2006-09-16 21:35:01    
Posting when tired is a mistake.. the "{if{" was just entirely extraneous.

Posted by Talmud at 2006-09-16 21:32:33    
Forgive the typo below, please.
"if(" should of course be "}"

Posted by Talmud at 2006-09-16 21:30:49    
This is an interesting package. One thing that I noticed was that your ExitNot functions do not work as intended (currently they do nothing). If you wish to set up proper sentinel functions you will need to have be value returning and be combined with an if() statement containing a return in the body of the script to be exited.

Example:

void main()
{
if(NotOnHitCast()) return;

DoStuff();
}

}
if (

Posted by RapidDeployment at 2006-09-15 20:29:04    Voted 10.00 on 09/30/06
Wow.

I employ a huge amount of items in my mod and this gem here has inspired me to rewrite all of the code to incorperate this awesome system.

Neat and tidy. Just the way I like it.
_________________________
I am 9fires.In Hell I burn in flames. So cold inside the fires heals the pain.

Posted by RapidDeployment at 2006-09-15 19:01:29    Voted 10.00 on 09/30/06
HA! First poster! I get the cookie!

If this is anything like everything else you've scripted, I'm sure its awesome.

I'm voting 10 blind
_________________________
I am 9fires.In Hell I burn in flames. So cold inside the fires heals the pain.

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 Other


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