|
Post by Fleetlord Atvar on Dec 22, 2008 18:19:22 GMT -5
So I downloaded Inform 7. It's a program for making text adventures. When I finish making my demo game (about escaping from a prison cell and killing the evil emperor) I think I'll make a HRU text adventure.
|
|
|
Post by Darth Grievi on Dec 22, 2008 19:35:13 GMT -5
Fistly, Hooray for creativity!
Secondly, how easy is it to use? I'm interested!
|
|
|
Post by Fleetlord Atvar on Dec 22, 2008 19:37:33 GMT -5
Well, generally after about two day's experimentation you won't get stuck, just get syntax errors. I do it easily and I only have experience in BASIC, a month in Java that I've long forgotten, and a few days attempting to modify a game written in C that I've also long forgotten.
|
|
|
Post by Darth Grievi on Dec 22, 2008 19:39:56 GMT -5
Tell me when you've got the demo game done, I'd like to reverse engineer it. (I usually learn programming faster that way, instead of building from the ground up)
|
|
|
Post by Fleetlord Atvar on Dec 22, 2008 20:02:09 GMT -5
The only real limitation is that it only recognizes "alive" and dead for the player. For anything else you have to build an inaccessible "Afterlife" room and move them there on death.
|
|
|
Post by Darth Grievi on Dec 22, 2008 20:14:08 GMT -5
Hmmm... That's not all that big a limit for me.
So how does it work? Is it just a window you program in, then it compiles it into a game? Or does it work like a file-tree, with folders and subfolders?
|
|
|
Post by Fleetlord Atvar on Dec 22, 2008 20:20:35 GMT -5
It's just a window. I'm just about done with the game.
|
|
|
Post by Darth Grievi on Dec 22, 2008 20:23:33 GMT -5
Excellent.
Do I need to download Inform 7 to play/hack it?
|
|
|
Post by Fleetlord Atvar on Dec 22, 2008 20:42:16 GMT -5
Nearly definitely you need it to modify it. But to play it probably not because I think it converts it to C or a common programming language on compiling.
|
|
|
Post by Fleetlord Atvar on Dec 22, 2008 22:10:08 GMT -5
No wonder I was running into bugs with everything about the Emperor... I accidentally called it the Emeperor the first time so it didn't recognize Emperor as a word. That was stupid.
|
|
|
Post by Fleetlord Atvar on Dec 23, 2008 14:32:46 GMT -5
You know those "How to shoot yourself in the foot in any language" jokes? Here is I7: The Gun is a room. "You are inside a dark and musty gun." The bullet is a thing in the gun. "There is a bullet here." The foot is a room. At 9:03 AM: Move the bullet to the foot.
|
|
|
Post by Fleetlord Atvar on Dec 23, 2008 15:35:12 GMT -5
I have to sort of warp the genre by adding in rules... I'll give a full list of special universal rules used in the HRU text adventure later.
|
|
|
Post by Fleetlord Atvar on Dec 24, 2008 17:26:18 GMT -5
I've got the game engine running! Here's the code I have so far (The first sentence is required for testing because every game must have one room. I decided to start in the Dimension Craft Bedroom.) "Hall of Rejected Universes-The Game" by John Laughlin
Dimension Craft Bedroom is a room. A person has a number called health. Health is usually 10. The heart is a thing. It has a number called HP. HP is usually 10. Every turn: if the heart has a HP less than 1 begin; say "You've taken too much of a beating. Sorry."; end the game in death; end if. Instead of dropping the heart: say "You cut your heart right out of your body and drop it on the floor. That was rather dumb."; end the game in death. The player carries the heart. The Afterlife is a room.
|
|
|
Post by Fleetlord Atvar on Dec 24, 2008 17:29:43 GMT -5
Note:Due to the restrictions of Inform, every object that's killable requires the following code: Every turn: if the <insert person> has a health less than 1 begin; say "<insert person> has been killed."; move <insert person> to the Afterlife; change <insert person> behavior to 2; end if. (Note:I'm adding "A person has a number called behavior. Behavior is usually 1" to the engine and 2 is dead. 3 and beyond are for things like anger and insanity. Each person needs the behavior code.)
|
|
|
Post by Darth Grievi on Dec 24, 2008 17:36:52 GMT -5
Hmmm...
Looking good! I'll be here if you need anyone to bounce ideas off of.
|
|