Game-HexDescribe
view release on metacpan or search on metacpan
lib/Game/HexDescribe.pm view on Meta::CPAN
;militia
1,[organised?||has a militia][!organised||has not managed to organise a militia]
% end
<p>
And now you just keep adding. Take a look at the <%= link_to 'Schroeder table'
=> 'schroedertable' %> if you want to see more examples. You might be better off
exploring the <%= link_to url_for('rule_show')->query(load => 'schroeder') =>
begin %>hyperlinked version<% end %> instead, though.
<h2 id="context">Context</h2>
<p>
But now you might be wondering: how does <em>Hex Describe</em> know
which table to use for a map entry like the following?
<pre>
0101 dark-green trees village
</pre>
<p>
<em>Hex Describe</em> will simply try every word. If a table for a
word exists, it will be used. Any of the following will get looked at:
<pre>
;dark-green
;trees
;village
</pre>
<p>
You can have a table describing the <em>trees</em> and a table
describing the <em>village</em>, for example. There's no need to
provide a table for <em>dark-green</em>, here.
<p>
There is more to it than that, however. In a list consisting of
multiple words, the other words provide a <em>context</em>. That is,
if a two-word combo exists, it will be preferred. You could, for
example, write a default table for villages and still have a special
table for villages in a forest.
<pre>
;trees
1,The trees cover the valley floor.
;village
1,There are a bunch of small mud huts, here.
;trees village
1,There is a saw mill and some log cabins, here.
</pre>
<p>
Here's another example. I wanted to provide different tables for
âwhite mountainâ and âlight grey mountainâ. Just look at the example:
<p>
<img alt="A screenshot of the map" style="width: 100%"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABZEAAANpCAYAAAB6pneIAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gMMFToXJrnvZAAAIABJREFUeNrsnXlYlNe9xz8ywzbMMCMgm6yCKEZwiAtKRDHGJU3dYmLaxkS8t0mXEIX0tmmuNmKXm8XbiE3ubRrbqza7WVySmKi...
<p>
The mountains in the bottom left corner at (01.09) and (01.10) just feel
different. I guess you could say that the two swamps in (05.07) and (06.08) also
feel different. In that case you might opt to provide different tables for âgrey
swampâ and âdark-grey swampâ. Up to you!
<p>
As far as I am concerned, however, I recommend to start with the following
tables:
<pre>
;water
;mountains
;white mountain
;mountain
;forest-hill
;bushes
;swamp
;trees
;forest
;fir-forest
;firs
;thorp
;village
;town
</pre>
<p>
This will have you covered for all these hexes:
<p>
<img alt="A list of hexes illustrating the list of terrains covered" style="width: 100%"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABKkAAADECAYAAABUZnIpAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gMPDSsFhlngGgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAgAElEQVR42uy9e1xVVdrA/yWvlICKqQlHjwgmR8ULUjh...
<p>
Youâre good to go! Write those tables and share them. <img alt=":)" class="smiley" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnL...
<p>
If youâre more interested in the <em>Smale</em> maps, I recommend you start with
the following tables:
<pre>
;water
;swamp
;marsh
;desert
;grass
;trees
;forest
;fir-forest
;forest-mountain
;forest-mountains
;forest-hill
;mountain
;hill
;bush
;bushes
;thorp
;village
( run in 1.555 second using v1.01-cache-2.11-cpan-39bf76dae61 )