About twenty minutes. No programming. At the end two people can play it on a BBS.
Start DoorBench. New project: call it Cave Town, put your name in, choose a folder, and start from nothing: one place. Save (Ctrl+S) whenever you like; Undo takes back anything.
The Flow tab shows one place, home. Press New place and call it cave. Drag the dot
on the right of home onto cave. A line appears: that is a choice that leads there. cave
already has a choice back.
Open Fields. Players have cash already. Add a field, call it bread, and leave it a
number. Then open Modules, press Use modules in this game, tick nothing yet, and press Add a shop. Name it store,
title The store. Add goods: label Bread, field bread, price to buy 3.
Open home (double-click it in Flow). Add a choice: key S, label Store. Under it,
+ Add a block, Group, Call a function, and choose store.
Add, Table, call it beasts. Leave it fixed. It has a field name; add hp,
attack and money, all numbers. Add three rows:
| name | hp | attack | money |
|---|---|---|---|
| A cave rat | 6 | 2 | 8 |
| A bat | 4 | 1 | 5 |
| A blind lizard | 12 | 3 | 20 |
In Modules, Add a fight: name hunt, opponents beasts, They hit
f.attack + random(-1, 1), Money won f.money. Tick Something that heals can be used:
how many is in bread, called some bread, heals 5.
Open cave, Add a choice: key H, label Hunt, calling hunt.
Still in cave, add a choice: key L, label Look around. Add these blocks under it:
1 from player.turns.30 in 100:random(1, 6) to player.cash, and Show, Say You find some coins. You have {player.cash}.Only stones.You are too tired today.Press F5, then Play as Ann, and click the screen. Press Play as Bob too: both are in the same world. On the right you can look at values and change them. Next day gives everybody their turns again.
If something is wrong it is listed at the bottom; click it to go there.
Balance plays the game with simulated players. Run it, and look at cash by day.
In The game, fill in the version, author and licence. Guides: add one called player
and say how to play. Then Game > Make packages. Each ZIP has everything a sysop needs,
and SYSOP.TXT says what to do with it.