Hello, newbie here. I was just re-introduced to IF through one of my college classes in which the latest assignment was to play through Bronze by Emily Short. I liked it so much I wanted to make my own and eventually found Inform 7. I’ve been mucking about with it, testing a few things and trying to decide what kind of game I wanted to design. I decided to make a game about something else that I liked…Transformers (Specifically about the Transformers Animated Dinobots). Yes, I’m an odd one, but I figure that if it’s something that I like then I more than likely won’t get bored whilst trying to make it work. And that in trying something like this I’ll be able to get used to using Inform 7 in the process.
Okay, on to the main point - custom actions.
There are twon main ones that are supposed to have a link to the plot : Headbutting and Transforming.
For Headbutting, I already have a really basic one -
Headbutting is an action applying to one visible thing. Understand "headbutt [something]" as headbutting. Report headbutting something: say "You headbutt the [noun] and are left with a bit of an ache in your helm."
After headbutting Oak Tree for first time: say "Your helm collides with the trunk, causing a hollow thud. A few leaves float down from the tree."
After headbutting Oak Tree for second time: say "Your helm collides with the trunk, causing a hollow thud. An acorn falls out of the tree."
After headbutting Oak Tree for third time: say "Your helm collides with the trunk, causing a sharp crack. The trunk appears to have splintered slightly."
After headbutting Oak Tree for fourth time: say "Your helm collides with the trunk, causing a sharp crack. With a creaking groan, the tree topples over."
After headbutting Grimlock: say "Grimlock growls angrily at you and stomps away."
Edited slightly. It now says the messages I want to appear when headbutting the tree.
However, there are a few things that I want to happen when headbutting the Oak Tree.
Such as -
On the first time I want a few leaves to be dislodged.
On the second time I want an acorn to fall out of the tree.
On the third time I want the trunk to splinter.
On the fourth time I want the tree to fall over and turn into a different object called ‘Fallen Trunk’
I have items for the leaves and the acorn premade.
I’d also want Grimlock to stomp angrily away if he’s headbutted…but I haven’t got to anything regarding NPC movement yet so that can wait.
The other action, Transforming…would be a transition between two states : Bot Mode or Alt Mode.
I want it so that some actions are restricted depending upon which state you are in at the time.
I’d also like it if I could have the description of an NPC and yourself change depending on the state.
I’m pretty sure that this would have something to do with values…but I’m not too certain on how to go about it.
Any help would be greatly appreciated. Thankyou.
- Arad