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  Scripting Library: Game Time v1.0
Author  psychospaz
Submitted / Updated  09-27-2005 / 11-22-2006
Category  Scripting routines
Expansions  Works on all versions
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Combat
Includes  Custom
Description
Save this as script 'include_time' in your module and then put the line '#include "include_time"' at the top of the script you want to use it in. This library will let you save game times to objects as variables, retrieve them, compare them, do arithmetic between them, and output them.
The output for game time recalculates minutes, seconds, and milliseconds to be accurate according to game time accelleration, as to give ingame time based information accurate for the gameworld.

Files

NameTypeSizeDownloads
include_time.txtinclude_time.txt
Submitted: 09-27-2005 / Last Updated: 09-28-2005
txt16.76Kb279
--
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 (10):

Posted by Crowdosi at 2006-12-15 21:37:04    
Quick question, could I use this script to store module time on an inventory item and then jump into a different module and sync the time concurrently to the last module I was in? If so, how?

Posted by psychospaz_ at 2005-10-13 09:28:26    
This took me about a day to code (not the whole day). Pretty simple stuff overall.

Except for having to figure out that minutes aren't actually minutes and that I'd have to recalculate for milliseconds, seconds and minutes for accurate game time printouts. That part pissed me off.

Posted by TakKerna at 2005-10-03 22:13:07    Voted 10.00 on 10/03/05
Aw crap *rates this time*
this is perfect in my opinion, 10 for you

Posted by TakKerna at 2005-10-03 22:08:07    Voted 10.00 on 10/03/05
Man... that is some god damn fine code. If it had a reproductive system... i ... will spare you the horrible details.

Awesome job =) and just what I need at the moment, i'll make sure to give you credits, much deserved credits.
rock.

Posted by psychospaz_ at 2005-10-02 11:57:56    
You need to make a new script with the contents I posted here and save it as "include_time". THEN you '#include "include_time'" in the script you want to use it in.

I just wrote this for the PW I code for, and it works quite nicely for setting time limits on actions (per hours etc) and then telling the user how long they have left until they can do it again; accurately in gametime.

Posted by Dwarf45 ( 195.204.xxx.xxx ) at 2005-10-02 08:56:14    
Hey man nice script how long time u used to script that?
---ZACH LOD--DA--MASTER--KING---

Posted by Dwarf45 ( 195.204.xxx.xxx ) at 2005-10-02 08:55:40    
Hey bro sorry about that "Double post"
i wanted to ask u about something where do i place the script? and i cant put in '#include "include_time"' cuz Aurora toolset dident find that file.

Posted by Dwarf45 ( 195.204.xxx.xxx ) at 2005-10-02 08:55:06    
Hey bro sorry about that "Double post"
i wanted to ask u about something where do i place the script? and i cant put in '#include "include_time"' cuz Aurora toolset dident find that file.

Posted by Dwarf45 ( 195.204.xxx.xxx ) at 2005-10-02 08:52:59    
Hey man nice script how long time u used to script that?
---ZACH LOD--DA--MASTER--KING---

Posted by Dwarf45 ( 195.204.xxx.xxx ) at 2005-10-02 08:46:17    
Hey man nice script how long time u used to script that?
---ZACH LOD--DA--MASTER--KING---

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 Tutorials


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