I want to make a body model and Im not really sure where to start, but I want to make a model detailing the different parts of the body, and yes, I kinda want it to be Adult. So for Inform 7 if anyone has any help for it that would be great
In very general terms, just for the sake of getting started, you can create objects that are parts of other objects, and if those âother objectsâ are the NPCs (or, for that matter, the PC), well, that works fine. For instance, you can do this:
The player is a man called Bob. A hand is part of Bob.
This lets the story know that the PC has a piece called a hand, and that the hand is attached, and that when Bob goes to another room, why, so does his hand. It does not automatically get you any hand-like behavior, though; you have to write your own rules for that.
If you want to make universal declarations that apply to every person in the game, you can say things like
A hand is a kind of thing. A hand is part of every person.
Juanita is a person. The description of Juanita's hand is "Juanita has beautifully manicured nails.".
Note that you have to make it âa kind of thingâ; you cannot create a single hand and attach it to everyone. This makes sure that every time you create a character, you also create another object, [name of person]'s hand, at the same time.
Again, Inform doesnât âknow what a hand isâ, just that (if youâve used these lines) every person has an object called that personâs hand. You have to write rules to implement whateverâs going on with hands.
If that was new syntax to you, you might find it helpful to take a quick look at Writing with Inform, section 4.15 â built into the âdocumentationâ tab in the Inform IDE, or available here.
There are libraries out there for dealing with body parts in this way that can help ease the burden have having to create all of the relevant anatomical bits from scratch; a quick Google search turns up this, among other things, though I myself havenât worked with it.
Does that help?
It does, but that kinda begs the question, since Iâm going to make something more akin to a descriptive wearable scenario, that is it possible to make something with that wearable?
If you want something wearable, you shouldnât also make it part of the body, because then it wouldnât be possible to take it off and put it back on. However, you can have both wearable things and body parts, and you could in theory make a thing, corresponding to what in the real world would be a body part, but make it wearable instead of being part of
someone.
Perhaps the most notorious example of this is in the profoundly misogynistic Stiffy Makane, a mid-nineties piece of adult IF, the original version of which accidentally made the PCâs phallus a detachable item that was, for instance, droppable.
Ah I see!
Also, Unrelated to the topic at hand, but just asking.
I wanted to do character creation as well but I need an extension or base for it, and I was wondering if you had a link to anything related?
Oh boy. You mean something to help you configure variable stats on a character at the beginning of play, I assume? Or something similar?
I am not personally aware of any extensions that do that, but would not be surprised to discover there is one (or more) out there. You can browse the âpublic libraryâ of extensions from within the Inform app and install them from there, or can run a Google search. Hopefully anyone else wandering by will contribute a pointer to whatever they may happen to know.
EDIT for grammar.
There are several âadultâ extensions for Inform of various and sundry quality online. Parser/text-only AIF is not as popular as it was perhaps a decade ago. I would suggest checking out AW Freyrâs âAIF Toolkitâ - although it appears it hasnât been updated in a long time and may not work with the current Inform version. Even if it is obsolete, you could read the source text and see what is involved or mine it for useful code. I tested it for AW ages ago and all of his extensions were very thorough and well-documented.
(Note: Top level link is not porn - it is an age-gated blog with Inform Extensions to assist authoring adult/sexual games. Be aware that further links from that site may contain more specifically explicit adult and NSFW content.)
Thatâs not entirely true; Informâs idea of what âpart ofâ means is flexible and you can have rules that separate and re-join things. Still, thereâs already a separate relation for wearable items, so youâd normally handle those differently from parts anyway.
Thank you, Gavin!
Thanks, Gavin, I didnât realize that, either, but an example of how a thing can be made a part of something else, and then taken off, can be found under S3.23 of the Inform Userâs Manual, in Example #36 âBrownâ. Thank you for pointing that out!
Basic code Iâve used:
A nose is a kind of thing. One nose is part of every man. One nose is part of every woman. Understand "nose" as a nose.
This will automatically furnish body parts to NPCs at the beginning of play, and will name them appropriately for disambiguation. âJohnâs noseâ âMaryâs noseââŚ
your nose is a nose. your nose is part of the player. Understand "my nose" as your nose.
This gives the player a nose, and will refer to it as âyour noseâ and sets up that the player will likely refer to it as âmy noseâ.
Understand "nostril/nostrils" as a nose.
This allows the player to use any synonym you specify.
So clothing gets tricky.
A garment is a kind of thing. A garment is wearable.
A garment can be face-worn.
A mask is a kind of garment. A mask is face-worn.
Check examining a nose (called N):
if N is incorporated by a person (called P):
If P wears a face-worn garment (called G):
say "You can't see [N] through [the G] they are wearing." instead.
âIncorporatedâ is one way in inform to say âa part ofâ.
See recipe book regarding clothing also: http://inform7.com/book/RB_9_3.html