If you'd like to write a Twine game yourself, first you'll want to download
You must be registered to see the links
(if you haven't already) and grab the updated version of
You must be registered to see the links
(follow the directions at the second link for how to update Twine with the newer version of SugarCube).
Next, the best thing to do is start by reading through the
You must be registered to see the links
and the
You must be registered to see the links
, just so you get an idea of what all they can do for you, and keep those links as a reference. Then, you can open any Twine game in Twine to take a look at the code in them to see how other people did it (you'll need Twine 1 to open Twine 1 games, and Twine 2 to open Twine 2 games).
Most of the rest is basic web design stuff and JavaScript. Check out
You must be registered to see the links
and
You must be registered to see the links
sites for help with HTML, CSS, and JavaScript coding if you want to do something trickier than plain text and images. Next, and I use this significantly less than the previous two links, but if you need it
You must be registered to see the links
has some additional information you may find useful.
If you get stuck,
You must be registered to see the links
is pretty helpful, as is the
You must be registered to see the links
section of the
You must be registered to see the links
forum (since the creator of SugarCube often hangs out there, and also I've posted a bunch of sample code there).
Finally, I'm actually working on a JavaScript inventory "plugin" for Twine 2 / SugarCube 2, called the Universal Inventory System (UInv), to make working with inventories easier, and I'm looking for testers capable of giving me good feedback on it. It's about 92% complete at this point, not including testing, sample code, and documentation. If you're interested in something like that, PM me and I'll send you a link to a pre-release version of it. You can take a look at the (still mostly bare-bones)
You must be registered to see the links
if you want to get an idea of what it can do.
Hope that helps!
[
EDIT: ...And I just realized I'm replying to a post from almost three months ago. Whoops! Oh well, maybe this will help someone else.]