MikeTaylor / scottkit

Scott Adams adventure toolkit: compile, decompile and play 80s-style adventure games
30 stars 10 forks source link

Document boilerplate actions needed for game #6

Closed drewish closed 6 years ago

drewish commented 7 years ago

As someone who's ignorant about the conventions of these kind of games (I played a couple back the mid-80s and found the guessing at what words you needed to type rather frustrating). It seems like the engine supports quite a few actions but you have to explicitly add support?

One example is what how do you exit? I've just been hitting ctrl+c but seems like you'd want to be able to give them an elegant way to quit.

drewish commented 7 years ago

Oh looking back I noticed https://github.com/MikeTaylor/scottkit/blob/master/data/tutorial/tutorial.md#stage-3-source exposes a few of these action explicitly:

action score: score
action inventory: inventory
action look: look

I suppose that's kind of what I'm looking for but with a bit more of an explanation of what it's doing there.

MikeTaylor commented 7 years ago

Yep, good call. What you need in this case is:

action quit:
  print "Goodbye"
  game_over

But it would make sense to document this stuff somewhere. (And I admit that myself I just use CTRL-D or CTRL-C.(

Or maybe make a library of standard actions that you can include. Although before I do that I'd need to make a file-inclusion facility (which is on to TODO list anyway). I wish this rather primitive bug-tracker had a way to set up dependencies of one issue on another.

drewish commented 7 years ago

(What I tend to do with dependent issues is just add a "Blocked" label and then edit the description to link to the upstream issue.)

I think just giving a file of examples would be great. People could pick an choose the bits that are relevant.

MikeTaylor commented 6 years ago

I think this need is met by today's blog-post, Boilerplate for ScottKit games: standard actions. I you agree, please close this issue.

(You probably already noticed, but the present series of blog-posts is linked from the top-level README.md. Once the set is complete, I might translate into Markdown and keep them all inside this git repo.)

drewish commented 6 years ago

Oh that was perfect. I would have just stuck them up top then been scratching my head when I couldn't figure out how to override them in those type of cases you highlighted.

MikeTaylor commented 6 years ago

Thanks!

We're getting near the end of the sequence of tutorial posts now. I envisage three more:

drewish commented 6 years ago

Yeah sounds good. I’m really curious about counters as a way to have some kind of conversation trees. Now that I got the slack part working I need to spend some time on my game again ;)

MikeTaylor commented 6 years ago

You have it working in Slack? Where? Can I see it?

(I don't see the code in https://github.com/drewish/scottbot yet.)

drewish commented 6 years ago

The code is up there. It's actually very little code at this point: https://github.com/drewish/scottbot/blob/master/scottbot.rb

I don't have it running on a server (just been running it from my laptop) at this point so sort of hard to show off.

MikeTaylor commented 6 years ago

Sweet! And it's working?

I'd love to see this, so if putting it on a server is easy, do let me know when it's up.