Hi all!
Made a mess of the first topic, but apparently you can’t fully delete it yourself, sorry!
New to the game-writing scene, and hoping for a couple of pointers. Partially to make sure I’m starting along the right lines, partially to make sure I stick to them going forward!
I’m working in Twine v2.9.2, Sugarcube, v2.37.3
So far I’ve managed to figure out the basics of adding macros/JS/CSS (not a coder, but I can usually follow what’s going on if it’s not too complex), and I’ve been able to:
Add a date/time system
Using Hituro’s DATESYSTEM
Day X
Monday 09:30
format for ease. I don’t want things like holidays to get in the way/break immersion, so I’m not using months/years.
Figure out a ‘back’ system
If a player navigate to an in-game settings page it makes sense that the ‘back’ button would return them to the previous passage.
Achieved via:
`[<<if State.passage != “testing”>><<link “testing”>><<set $passageBack = State.passage>><<goto “testing”>><><><<link “back”>><<goto $passageBack>><><>]`
(for some reason it keeps removing parts of the above and it won’t wrap in the `s but I’m sure you can work it out!)
Macro for coloured speech
This one was, admittedly, ChatGPT work (I know, “boo hiss,” but I’m not a programmer!), but it allows me simple coloured <<say “npc_name”>>speech<>
The eventual plan for what I’m working on is that it will have a centralised story path, however be effectively open-world and non-linear outside of that. I’m using the time tinkering with the prologue elements to try and not only learn how the platform works, but also to try and learn some best practises, which is one of the things I would love some help with.
In particular I’ve already realised that reusing elements as frequently as possible makes sense. Menu bars and passage header sections etc don’t need writing out in full every time for obvious reasons.
So, onto the real meat of what I’m asking!
There’s a few things that I’d like to incorporate, but would prefer to do them the right way from the start. Having to rework everything when I’m 200 passages in would not be fun!
So my queries are regarding, in no particular order:
Include/similar for events
If I’m working with a passage called ‘room_kitchen’ I would prefer to pull events into it, rather than create new passages for each event/‘page’.
For example if I have a three passage series on ‘making lunch’ I would prefer to pull that into the ‘room_kitchen’ passage, with each ‘nested passage’ linking to the next. This way I don’t have to rewrite the room every time, and I can account for requirements (“if it’s the right time” OR “if the following other conditions are met” ELSE “otherwise do one of these at random”)
Is using include the best way forward here? I don’t know how I could passage two/three of ‘making lunch’ using them.
Item/clothing system
I’d like to incorporate an item/clothing system, but I’m not sure where I’m best looking.
Ideally it would allow for single-buy items (I wouldn’t need two of the same armour piece, for example, so this would be prevented) and multi-buy (health potions, say).
The items/clothes would be taggable (‘armour’ or ‘work’ for example) so that I could refer to them elsewhere. “it’s raining, so to go outside your jacket must have the ‘waterproof’ tag or X happens instead” / “if you go to work wearing clothes that aren’t tagged ‘work’ then X happens”
There would need to be the option for unremovable items (like cursed equipment)
It would also ideally have some way to have requirements for equipping - “can’t wear X armour without Y defence stat”
Avatar that changes
Looking at proper graphic design would be way down the line, but it would be nice to have an avatar in the side menu that reflects the player’s chosen attributes (like hair/eye colour) and equipped items. Is there a prebuilt system for this, at all?
Right sided menu
Is there a way to move the default menu to the right hand side? All I could find in my searches was replacing it with a custom one.
My apologies for all the questions (and again for making a mess of the first topic!), I know there’s a lot there! I’ll probably have more down the line, but I’m trying to jog before I run! =D