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  



NWN2 SCRIPTS

- Jump to comments -
Name  Bedroll, Campfire, Inn
Author  SorceressAshura
Submitted / Updated  02-23-2007 / 02-24-2007
Category  Resting
Forum Thread  Link
Type  Type - Resting
Format  Module Only
Patch  1.04
Description
While this system is not unique to NWN, I didn't see it in the script section of the NWN2 files. Its very basic in nature, you can add your own stuff to it to make it your own. Hopefully, this will save a novice builder a few headaches concerning a working rest system. I've included a test module so you can get an idea for the resting system.

**Installing**

Simply place, gui_myrestscript_sa into the module properties event slot named; "On Player Rest Script" slot.

Add the Bedroll item into your stores, or client enter scripts. The item can be found in the category of items, "Rhydin Plot Items." I've set a base price for the bedroll to 50 gold and added 5 pounds to its weight. Those options are customizable. (Price and weight)

Look in your triggers, in the Empty section you'll find "Rest Trigger" there. Use that trigger to determine what spots in your area players can rest. Use it around campfires, or even Inn rooms. You�re all done.


Known Issues:
I know of the Rest canceled tip glitch, where it speaks the line twice. I've no idea why it does it,... it's not suppose too. If anyone can figure it out, I'd love to know. You can comment the line out ( 28 ) or remove it entirely out of the script. If it bothers you, it won�t affect anything. It�s just for show, really.

Q. Will it work in a PW?
A. I don't see why not, I have yet to test it.

Files

NameTypeSizeDownloads
SA_BedRoll_SYS01.rarSA_BedRoll_SYS01.rar
Submitted: 02-23-2007 / Last Updated: 02-23-2007
rar3.2Mb485
Includes 3 scripts. One item, and one trigger. I've also provided instructions, and a test module.
SCORE OUT OF 10
N/A
Cast Your Vote!
Voting FAQ

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

A screen shot of the rest system in action.





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

Posted by SorceressAshura at 2007-08-25 04:44:25    
Thank you SGK73, that did it. I will update the scripts when I get home.
_________________________
AKA: GuardianofLore.

Interested in joining Rhydin's PW Staff?
Come make your dreams, a reality.

Posted by SorceressAshura at 2007-08-25 04:42:39    
In regards to your issue " but once you have a bedroll you can rest anywhere including inside."

Yes, that's correct. The system is designed to allow a PC who has the bedroll to rest. Which means he can lay that comfy bedroll down, and sleep anywhere he chooses. Becuase in truth, if you had a bedroll with you. You can rest comfortibly anywhere you like. That makes sense to me at least.

I mean if you still want to designate "rest areas" and allow PCs to rest at them with a bedroll, all you would need to do is take the if statement for the bedroll item, and copy it into the trigger that adds the rest value. That way it would check to see if they were in the area trigger, and then it would check for the bedroll in his/her inventory. If its true for both cases then the PC can rest. Get the idea?
_________________________
AKA: GuardianofLore.

Interested in joining Rhydin's PW Staff?
Come make your dreams, a reality.

Posted by SGK73 at 2007-08-01 22:52:15    
Was modifying your rest system a bit to include a survival skill check and found out how to avoid the @rest canceled glitch.
Wrap your rest code in this and it should go away.

int iRestEvent = GetLastRestEventType();

if (iRestEvent == REST_EVENTTYPE_REST_STARTED)
{
//your code here
}

Thanks for excellent contributions, your VFX pack is great.

Posted by SorceressAshura at 2007-07-11 00:00:26    
Seems to work fine for me, and others. The scripts work as they are intended. It's a very basic system designed to allow others to fill in the gaps to whatever suits they're mods needs.

The basics of the system is the use of triggers. Paint it down on your map. On the On Enter script, it adds a value to the PC. Which is the same value of the "rest" value in gui_myrestscript_sa. Therefore allowing the PC to activate resting. Once the PC leaves the trigger, it then removes that value. Preventing the PC from resting outside that trigger. Allowing the builder to create Inn rooms, or campsites.

Make sure, that script "gui_myrestscript_sa" is in the On Player Rest Script Slot, of your module properties. Otherwise it wont work. Which is what I'm guessing is the reason why it wont work for you.

The bedroll is a persistent item in this system. Think about it, if you use a bedroll in real life, it'll still be there when you wake up won't it? ... Well that is unless you have a bedroll thief on the loose. ... But seriously, things shouldnt disappear realistically. The system is very customizable, you can set it up to remove the bedroll in the script gui_myrestscript_sa. That, I've left up to the builder.
_________________________
AKA: GuardianofLore.

Interested in joining Rhydin's PW Staff?
Come make your dreams, a reality.

Posted by scruffer666 at 2007-04-26 11:08:57    
it doesnt seem to work. you cant rest without a bedroll anywhere which works, but once you have a bedroll you can rest anywhere including inside. also once youve rested it doesnt remove the bedroll :(

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

10 - A Masterpiece, Genuinely Groundbreaking
9 - Outstanding, a Must Have
8 - Excellent, Recommended to Anyone
7 - Very Good, Deserves a Look
6 - Good, Qualified Recommendation
5 - Fair, Solid yet Unremarkable
4 - Some Merit, Requires Improvements
3 - Poor Execution, Potential Unrealized
2 - Very Little Appeal
1 - Not Recommended to Anyone

 
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 Prefab Areas


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