Imagine Nation Forums
[Release] Text Game Inventory Manager for phpBB and vBulletin - Printable Version

+- Imagine Nation Forums (https://in-uo.net/forums)
+-- Forum: Imagine Nation (https://in-uo.net/forums/forumdisplay.php?fid=3)
+--- Forum: Off-Topic (https://in-uo.net/forums/forumdisplay.php?fid=8)
+--- Thread: [Release] Text Game Inventory Manager for phpBB and vBulletin (/showthread.php?tid=85)



[Release] Text Game Inventory Manager for phpBB and vBulletin - Eru - 03-22-2011

Does anyone remember the old text-based games where you would read about where you're at, then input a command to control your character? MUDs are a good example. Tongue

I like playing a non-automatic version of this game, where the Story Master will do the part of the computer, describing the surroundings, taking commands by the players and then posting a response based on what the command is.

It's VERY fun, but handling inventory and characters gets to be really hard and time consuming, so one day in a fit of boredom, I scripted a nice bot that will save your character status, items, etc.

Download: http://in-uo.net/download/TG%20Inventory%20Manager.exe

How to Use Wrote:When you load up the program, you have the following boxes:
  • Key Items
  • Items
  • Characters
    • 9 equipment slots
    • Avatar URL
  • Money
  • Save Point Settings in bottom right
    • Save Point Image URL
    • Save checkbox
  • Commands *
    • Input on top (player's command)
    • Output on bottom (Story Master's response)
*All settings are saved except for Commands, since they will change every time.

Starting a Game:
  • 1: Start up the Inventory Manager
    2: Populate initial data
    • Avatar and Save-Point image URLs
    • Starting Character name and equipment
    • Starting items/key items
    3: Enter a starting command under response, then hit "Create BBCode"
    4: Paste the code into a forum post

Continuing a Game:
  • 1: Start up the Inventory Manager
    2: All items and Characters are saved!
    3: Input the players command on the top command input
    4: Input your response on the bottom command input
    5: Make any changes to inventory that may have happened
    • e.g: They picked up an item? Add it to inventory? They used an item? Remove or modify it.
    6: Press Create BBCode and post it.

Saving a Game and Restoring a Save:
  • If you check the Save game checkbox next to the Create BBCode button, it will create a backup of the game that can be reloaded.
    If you decide to KILL your characters off, which is fun to do sometimes, you can load up the inventory manager and click the [Last Save] button to revert the settings to the last time the game was saved.

Hopefully that's enough of an explanation. Lets get to gaming!

GUI Preview (click to enlarge)
[thumb=200]http://img24.imageshack.us/img24/8114/tgim.png[/thumb]


[Release] Text Game Inventory Manager for phpBB and vBulletin - Eru - 03-22-2011

Custom BBCodes for phpBB

Thumbnails (Image Resizer):
Code:
[imgrs]{NUMBER1},{NUMBER2},{URL}[/imgrs]

<a href="{URL}" target="_blank"><img src="{URL}" width="{NUMBER1}" height="{NUMBER2}"></a>

Number1=Width
Number2=Height
URL = Link to Image

Hide Text (For hiding the inventory section):
Code:
(hide]{TEXT1}|{TEXT2}[/hide]

<dl class="codebox" style="padding-bottom: 0px !important;"><span onclick="var elementmode = this.getElementsByTagName('span');for(var i=0;i<elementmode.length;i++){if(elementmode[i].title == 'hereitis'){elementmode[i].style.display=(!elementmode[i].style.display)?'none':'';}}"><dt style="margin-bottom: 0px !important;">{TEXT1}</dt><span title="hereitis" style="display:none;padding-left:20px;padding-bottom: 3px">{TEXT2}</span></span></dl>

Text1 = Title
Text2 = Content

Horizontal Rule:
Code:
(hr]{TEXT}

<hr title="" />

Creates a horizontal rule.  You can add {TEXT} into the title but it doesn't seem to do anything for me



[Release] Text Game Inventory Manager for phpBB and vBulletin - Eru - 03-22-2011

Custom BBCodes for vBulletin

Thumbnails:
Code:
(thumb={size_in_px}]{image_url}[/thumb)

<a href="{param}"><img border="0" height="{option}" alt="thumbnail" src="{param}" /></a>

Disable Automatic Link Parsing Within this BBCode = YES

Hide Tag (To hide the inventory section until clicked)
Code:
(hide=[b]title[/b]][b]text[/b]][/hide]

<dl class="codebox" style="padding-bottom: 0px !important;"><span onclick="var elementmode = this.getElementsByTagName('span');for(var i=0;i<elementmode.length;i++){if(elementmode[i].title == 'hereitis'){elementmode[i].style.display=(!elementmode[i].style.display)?'none':'';}}"><dt style="margin-bottom: 0px !important;">{option}</dt><span title="hereitis" style="display:none;padding-left:20px;padding-bottom: 3px">{param}</span></span></dl>

Horizontal Rule:
Code:
(hr=[b]width[/b]][b]Hex_Color_Code[/b]

<hr title="" color="{param}" width="{option}"/>



[Release] Text Game Inventory Manager for phpBB and vBulletin - Eru - 07-04-2011

-=(Change Log)=-

2011.07.04 :


[Release] Text Game Inventory Manager for phpBB and vBulletin - Eru - 07-04-2011

-=(EXAMPLE)=-

>Create an example with a save point

You create an example.


[hide=Click for Characters and Inventory][hr=100%]666666[hr=100%]AAAAAAMoney: $.01
[thumb=30]http://img818.imageshack.us/img818/3080/derpc.png[/Thumb]Eremite
  • head: fur
  • legs: fur
  • chest: fur
  • feet: fur
[thumb=30]http://img818.imageshack.us/img818/3080/derpc.png[/thumb]Shade
  • head: Kasa
  • legs: Skirt
  • chest: --
  • feet: --
[thumb=30]http://img818.imageshack.us/img818/3080/derpc.png[/thumb]Taran
  • head: Salmon
  • legs: Kilt
  • chest: Hair
  • feet: More Salmon
[thumb=30]http://img818.imageshack.us/img818/3080/derpc.png[/thumb]Israfil
  • head: empty
  • legs: stubby
  • chest: D cup
  • feet: smelly

Inventory
  • Shade's Stupid Face
  • Taran's Smoked Salmon
  • Eru's Scratching Post
  • A large trout
  • +9 Vorpal Sword of Evisceration (broken)
Key Items
  • A Large Glowing Key
[/hide][hr=100%]AAAAAA[hr=100%]666666
[thumb=100]http://img19.imageshack.us/img19/2907/23savepoint.jpg[/thumb]