Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

INVENTORY

10 years ago

Hi everyone! 

1. is it possible to display the inventory on the right hand side of the story view screen?

2. And maybe change its font/appearance?

I'm guessing I will have to put in some script on the global page
Thanks!

INVENTORY

10 years ago
Short answer: No.

Longer answer: I looked around the source, and I don't see anything that uniquely identifies that section, so I don't think there's going to be any way to do that. And since the text displays with the items in the inventory the way it does, I don't think it would look very good if it were moved to the side, anyway.

INVENTORY

10 years ago

I'm not sure about inventory at the right hand side of the story view screen, but I know you can put links there that act like an item, here. About 4-5 clinks before you see it done though, and I would suggest viewing it on Alex so you can see an extensive example of it. (WIP)

Of course, that uses a whole bunch of scripting, html mainly I think. Not entirely sure, but it's a type of script not designated just for this site, but can be used anywhere. Like making a background (the version depicted in the article that was just for this site doesn't work anymore).

If you want to know how it's done, you'll have to ask quiller if he ever pops up again. He hasn't been back for over a month, though he's been away longer and then come back.

INVENTORY

10 years ago

It can actually be identified by table:last-of-type {}, but there's not much you can do about repositioning it. You can, though, quite easily change the font; for example:

table:last-of-type h2 {font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; color:red; font-weight:bold; font-style: italic;}

table:last-of-type p {font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; font-size: 120%;}

Please note I do not actually condone the use of Comic Sans or any similarly designed typeface in this manner.

INVENTORY

10 years ago
Short answer: Yes

http://chooseyourstory.com/help/articles/article.aspx?ArticleId=105

Long answer: Not nearly worth the effort.

INVENTORY

10 years ago
Holy crap. I can't even imagine going through all that when there's already an inventory system in place. But hey, to each their own I suppose.

INVENTORY

9 years ago
Has anyone actually ever tried using this method?

Just conjecture, but from what I scanned over I think a solid 30% of that code can be condensed and simplified. I'm looking to use this method instead of using the default inventory. I was about to crack down and try to figure it out myself but if Zikara already has a base then this saves me a lot of time - if it works.

EDIT:: So far so good.

Script thus far:

$PAGETEXT := $PAGETEXT + "<script type='text/javascript'>function toggleMe(a){var e=document.getElementById(a);if(!e)return true;if(e.style.display=='none'){e.style.display='block'}else{e.style.display='none'}return true;}</script>"

$PAGETEXT := $PAGETEXT + "<HR><center><font size=4>Inventory</font></center><hr><br><br>"

$PAGETEXT := $PAGETEXT + "<input type='button' onclick='return toggleMe('para1')' value='COFFEE'<div id='para1' style='display:none'><a onclick='PostBack('FollowLink',' 2 ');return false;' href='#'> <image src=http://chooseyourstory.com/i/?31169><br>Drink Coffee</a>"

EDIT2::

Current working(?) global page script:

$PAGETEXT := $PAGETEXT + "<script type='text/javascript'>function toggleMe(a){var e=document.getElementById(a);if(!e)return true;if(e.style.display=='none'){e.style.display='block'}else{e.style.display='none'}return true;}</script><hr><center><font size=4>Inventory</font></center><hr><table border=0>"
IF%HASCOFFEE = 1 THEN
$PAGETEXT := $PAGETEXT + "<img src=http://chooseyourstory.com/i/?31169 /><input type='button' onclick='return toggleMe(' para1 ')' value='Coffee'<div id='para1' style='display:block'>Drink Coffee<br> <a onclick='PostBack('FollowLink',' 1 ');return false;' href='#'>Drink Coffee</a><td>"

This one looks a bit odd and has a useless button that's a result of old code (bearing in mind the article is old as fuck and likely no one wants to take the time or has the knowledge to update an article about such tedious code).

INVENTORY

9 years ago
I don't think anyone has tried cause there's never really been a need. Default inventory system works fine for the most part.

INVENTORY

9 years ago
The thing I want to use a custom inventory for is when the player is carrying a massive amount of items. It needs to be more compact otherwise every page would have a million icons at the bottom. I was thinking I can make a sidebar with a threaded view, sort of like categories of items that way not all items have to be displayed at once, the items are more organized, aren't taking up space on the screen, and look better than a white box with icons in it.

Basically I want to condense a ton of items into a smaller area than the default inventory would allow. Like ingredients for alchemy, there's a lot of ingredients and combinations - but it'd be terrible to have them all as links or items if I used the default elements of the advanced editor.

INVENTORY

9 years ago
If you have that many items I feel like you should just be using variables, and that you should have a "Bench" item that leads you to a page where you can craft them.

Unless there's a need to have them all available on every page to do different things, I don't see why you would want to have so many items visible. It'd just overwhelm the player.

INVENTORY

9 years ago
It's an overwhelming environment with lots of items available...so I mean, it fits. In any case I think the default inventory doesn't look very good and I can't really change it so I'd rather make my own for the fun of customization.