so far i have learned how to use links, however i am having trouble with figuring out how macros and other things work. can someone please help? right now i am trying to set up on occupation system, where if the player picks a particular occupation, he will have specific skills and whatnot and the game will remember which he picked. i also need help in figuring out how to setup an inventory system, health, etc.
i am using harlowe format, and dont have programming experience. help would be greatly appreciated.
Comments
I suggest you start by first reading the Twine 2 Guide, it covers the basic usage of the Twine 2 application. You may want to read the Twine Index section of the Twine Wiki which is actually about Twine 1 but includes information about using macros and other features that are also in Twine 2.
note: Although the format (syntax) of the Twine 1 macro examples are different to the ones in Harlowe they still work in a similar way.
After that have a quick look over the Harlowe documentation so that you have some idea of what features that story format has.
Once you have done the above you should know a little more about how Twine and Harlowe work together.
note: The following is formatted for readability, you can remove the indents and extra line-breaks. An inventory system can be as simple as: ... or as complex as using collection $variables (like arrays and datamaps) to track:
a. what items each character in the story is carrying
b. which items have been dropped in which locations
c. whatever else you can think of etc...
for one of the classes i have, it is the only class that uses magic, but the other jobs will allow skills, which take the place of magic. say i want to implement use of mp/sp, i would do:
(set:$mp to 0) and have an $mp mp display somewhere
would i use the format you mentioned above with the link command to give the character mp points once they pick the job?
The following guides made by Twine users may help:
This is by Nate.
https://github.com/nate2squared/game-creation/tree/master/twine
This is by prof_yaffle
http://twine.analytical-engine.co.uk/index.html
This is by Chris Martens
http://lambdamaphone.blogspot.it/2015/02/using-twine-for-games-research-part-ii.html
Edit: I am 99.9% sure that some of those questions have been answered, at least partially, in previous threads - it is probably a good idea to find a similar question that works for you, and play with the engine to obtain the effect that you want, starting from the existing examples.
Cheers.
Ty, could you please add those links and any others you can think of to the Twine Wiki
Anyway, I liked the straightforward approach of her game, so I may use parts of it and play. I like the idea of simply prototyping mechanics.
So, this is a file that you use with Twine 2 and Sugarcube 2. It's not compiled, so as to take up less space. Just put it wherever you put your own project files (usually in My Documents/Twine/Stories or something).
And, the forum ate the upload.
Anyway, to use that file I uploaded, you need to... umm, it's actually a bit complicated since you need to install Sugarcube 2, which you need to download and install separately.
I could upload the compiled html. Most of the code is in sugarcube though, so quite different than harlowe and different from what Chris does in the tutorial (I converted).
Let me know if you want the html file you can run in browser. I'm not sure, since it comes with some dependencies and stuff.
My question was in relation to you saying that when you viewed the html file on your machine it only showed text at the top of the screen and I was asking if you created that html file using the Publish to File option, because some people mistakenly use the Archive option which will create a html file that behaves exactly like you described.
Assuming you are using the Publish to File option, are you using the hosted version of Twine 2 and if so are you running it on OSX or using Safari?
Both situations have been known to create a story html file that does not work correctly.
why doesn't it display properly?
You must use the Publish to File menu item to create a playable story.
That folder/directory is reserved for Twine to use internally.
But to work at the mechanics of it, you'd need to install sugarcube 2 from here and use that as the story format. Twine only comes with sugarcube 1 by default. That's why I said it was a bit involved.
But again, it's mostly just a story from the tuturial. That was was written in harlowe. I just offered to upload the story in native sugarcube, just because I'd already done it. It's not easy to switch between sugarcube and harlowe, since the underlying coding is different. But, here it is, in case this is what is causing all the fuss.
To edit the story, you'd simply import it into TWINE 2. It might work just like that, or you might need to have sugarcube 2 installed. I'm not sure.
Edit: sorry, I should point out that it's a twine 2 game. Sugarcube 2 as well.
@greyelf - I don't think I can edit the wiki.
(I just registered, though)