Quantcast
Channel: forum.freeciv.org
Viewing all articles
Browse latest Browse all 396

Contribution • Re: Collection of Scenarios

$
0
0
Image
Scenario: The Shadow Vales 61x61=4k, 87% land, Classic, Flat, Lua, v1

Featuring Surrender Lua script

Created and tested with Freeciv version 2.6.4 ( and GTK2 client ) with Lua 5.3

Various tribes searching for a peaceful spot to live become caught in a trap near the center of The Shadow Mountains.

The pace of the game is accelerated via various Lua scripts in the scenario file.


Image
^ Three difficulty levels; easy, normal, and hard can be chosen via the chat pane in some Freeciv clients, such as the GTK2 client.


Designed for the default / Classic ruleset, and Amplio2 (square) tile graphics.
Lua scripts in the scenario:
function _G.comparable_version()
function _G.game.current_turn()
function _G.game.current_year()
function _G.name_version()

function chat( message )

function s_ai_tribes_city_defender( unit, src_tile, dst_tile )
function s_ai_tribes_city_defender_check( turn, year )
function s_barbarian_rain( unit, type, quantity )
function s_extended_vision( unit, src_tile, dst_tile )
function s_fox_hunt( turn, year )
function s_late_arrival_startunits( turn, year )
function s_refugees( city, loser, winner, string )
function s_reporter( turn, year )
function s_roving_rivers( turn, year )
function s_suburban_sprawl( turn, year )
function s_surrender( city, loser, winner, string, loserName, winnerName, gold )
function s_surrender_deliberation( city, loser, winner, string )
function s_weatherizer()
function s_weatherizer_drought()
function s_weatherizer_rains()
function s_weatherizer_winds( unit, src_tile, dst_tile )

The s_ at the start of function names is intended to indicate that the Lua script is in the Scenario / saved game ".sav" file. The first 4 must use the same name as in Freeciv 3 so the s_ isn't used. "Chat" also doesn't have it for the sake of brevity.

Several routines are updated from their original versions: AI Tribes City Defender, Extended Vision, Late Arrival Startunits.
Late Arrival Startunits accelerates gameplay by increasing the number of startunits to 16 Settlers and 16 Warriors per player, in addition to a startcity.

Extended Vision accelerates scouting the map.

Fox Hunt accelerates Gold income.

Surrender allows tribes to surrender under some circumstances which accelerates conquest.

Refugees brings Settlers units out of hiding once a contested valley is occupied by only one tribe's cities, which accelerates settlement of conquered lands.

Roving Rivers provides irrigation along the changing courses of some rivers, which accelerates city growth, but it also destroys roads on flat land ( but not on Forest, Hills, or Mountains, and not the sturdier Rail.) May also accelerate unit travel.

Suburban Sprawl gradually produces roads emanating outward from cities (though never on River tiles), which accelerates unit travel.

Weatherizer provides Rains for "natural irrigation" which accelerate city growth, as well as Drought which destroys irrigation, and Winds which are fierce enough to blow units away -- even over obstacles.

Image
^ Reporter Lua script provides additional information during the game via the Chat pane available in some Freeciv clients. Note that it is turn 5. The additional information has the effect of accelerating some decision making by the human player.

Image

Image
^ Surrender Deliberation and Surrender allow a tribe to surrender to a victorious conquerer, though no civilized tribe surrenders to Barbarians.

Image
^ "Weatherizer Winds will blow you away!" -- Unit #7033

A little strategy may be required for full enjoyment ... !

Signs posted in towns on the way to the center of the Shadow Mountains:
"WANTED: Barbarian Leaders to lead assault groups against defenseless tribes. Apply at Dedbreth's lair."
^ Dedbreth was careless to not have included a date.
The Shadow Vales 61x61=4k, 87% land, Classic, Flat, Lua, v1.sav.zip

Statistics: Posted by Molo_Parko — Wed Oct 30, 2024 2:29 pm



Viewing all articles
Browse latest Browse all 396

Trending Articles