Etherchest
2.0
2021 jan 3
for Neverwinter Nights 2
VERSION 2 IS INCOMPATIBLE WITH EARLIER VERSIONS. If you have used an earlier
version go retrieve your stuff from it and close the chest empty before using
this version! Then delete your old version before installing this one.
This is a chest capable of interdimensional travel to any module or campaign. It
tracks contained items in a database.
INSTALLATION
------------
Unzip "Etherchest" to your MyDocs /override folder while Nwn2 is NOT running.
USAGE
-----
Load your game. Then from the console, enter
MAKE A SAVE before doing this
`
debugmode 1
rs etherchest
debugmode 0
`
That should create the chest at your feet. Messages should appear in the
chatbox. The chest will be open, it should be empty. Place items that you wish
to transfer to other characters into the chest. Closing the chest ought store
the items in three "etherchest" files in your MyDocs /database folder.
The chest should disappear when it's closed. Note that exiting the game while
the chest is open WILL CLOSE THE CHEST and save its state to the database -- you
probably don't want to do that. Close the chest nicely.
Run the console commands above at any time to conjure the chest with its items.
Note that if the chest is closed empty, the three files in the /database folder
shall be deleted.
Feel free to leverage the interdimensionality of the chest to store 5 sets of
armors and 20 different weapons, for example. This is an exploit, aka cheating.
Have fun - because why not.
TO ADD TO GUI
------------
Add something like this to, for example, "playermenu_popup.xml"
<!-- Etherchest -->
<UIButton name="PM_PLIST_IMAGE" x="19" y="314" width="24" height="24"
OnToolTip='UIObject_Tooltip_DisplayTooltipString("Conjure Etherchest","OBJECT_X","OBJECT_Y","SCREEN_TOOLTIP_2","ALIGN_NONE","ALIGN_NONE","0","0","ALIGN_LEFT")'
OnLeftClick0='UIButton_Input_ScreenClose("SCREEN_PLAYERMENU_POPUP")'
OnLeftClick1='UIObject_Misc_ExecuteServerScript("gui_etherchest")' >
<UIFrame state="up" fill="b_partyselect.tga" />
<UIFrame state="down" fill="b_partyselect.tga" />
<UIFrame state="focused" fill="b_partyselect.tga" />
<UIFrame state="hilited" fill="b_partyselect.tga" />
<UIFrame state="hifocus" fill="b_partyselect.tga" />
<UIFrame state="disabled" fill="b_partyselect.tga" />
</UIButton>
<UIButton name="PLIST_TOGGLE_BUTTON" x="44" y="314" text="Conjure Etherchest" style="PM_TOGGLE_BUTTON"
OnToolTip='UIObject_Tooltip_DisplayTooltipString("Conjure Etherchest","OBJECT_X","OBJECT_Y","SCREEN_TOOLTIP_2","ALIGN_NONE","ALIGN_NONE","0","0","ALIGN_LEFT")'
OnLeftClick0='UIButton_Input_ScreenClose("SCREEN_PLAYERMENU_POPUP")'
OnLeftClick1='UIObject_Misc_ExecuteServerScript("gui_etherchest")' />
Attachment | Size |
---|---|
![]() | 5.21 KB |
![]() | 5.88 KB |
Perfect!
I want to write a better check for duplicate tags (which are disallowed) since at present "sword_a" and "sword_ab" are considered duplicates (though it depends on the order that items are added to the chest). But no worries
version 2.0 no longer relies on tags to store items in the database. That is, items with the same tag ought be ok now
VERSION 2 IS INCOMPATIBLE WITH EARLIER VERSIONS. If you have used an earlier
version go retrieve your stuff from it and close the chest empty before using
this version! Then delete your old version before installing this one.