Bigger fixes to 'Gathering Materials'...

...and some visual tweaks to the council scenarios.
This commit is contained in:
Lari Nieminen 2007-12-01 14:24:27 +00:00
parent 396c457354
commit c1222a2c58
4 changed files with 427 additions and 221 deletions

View file

@ -50,6 +50,7 @@
[event]
name=prestart
#Durstorn's guard
[unit]
x,y=11,10
@ -97,6 +98,26 @@
{TRAIT_STRONG}
[/modifications]
[/unit]
[item]
x,y=8,9
image=items/brazier-lit1.png
[/item]
[item]
x,y=14,9
image=items/brazier-lit1.png
[/item]
[item]
x,y=14,12
image=items/brazier-lit1.png
[/item]
[item]
x,y=8,12
image=items/brazier-lit1.png
[/item]
[/event]
[event]
@ -120,14 +141,13 @@
[/message]
[message]
description=Durstorn
message= _ "Good one, Let them try to take it! Ha!"
message= _ "Good one, let them try to take it! Ha!"
[/message]
{MOVE_UNIT description=Rugnur 8 10}
[recall]
description=Baglur
x,y=2,5
x,y=9,9
[/recall]
{MOVE_UNIT description=Baglur 9 9}
[message]
description=Rugnur
message= _ "Hey, Durstorn, have we started yet? King Haldric came by just now, wanted to talk to you..."

View file

@ -48,10 +48,11 @@
[/story]
[event]
name=start
name=prestart
#Durstorn's guard
[unit]
x,y=11,10
x,y=9,10
side=2
type=Dwarvish Stalwart
description=Neglur
@ -62,7 +63,7 @@
[/modifications]
[/unit]
[unit]
x,y=13,11
x,y=13,12
side=2
type=Dwarvish Runesmith
description=Glinar
@ -94,24 +95,48 @@
{TRAIT_STRONG}
[/modifications]
[/unit]
[item]
x,y=8,9
image=items/brazier-lit1.png
[/item]
[item]
x,y=14,9
image=items/brazier-lit1.png
[/item]
[item]
x,y=14,12
image=items/brazier-lit1.png
[/item]
[item]
x,y=8,12
image=items/brazier-lit1.png
[/item]
[/event]
[event]
name=start
#thursagan, baglur and alanin
{MOVE_UNIT description=Rugnur 14 9}
{MOVE_UNIT description=Rugnur 13 10}
[recall]
description=Thursagan
x,y=12,8
[/recall]
{MOVE_UNIT description=Thursagan 12 8}
[recall]
description=Baglur
x,y=15,8
[/recall]
{MOVE_UNIT description=Baglur 15 8}
[recall]
description=Alanin
x,y=16,9
[/recall]
{MOVE_UNIT description=Alanin 16 9}
[recall]
description=Krawg
x,y=16,11
[/recall]
{MOVE_UNIT description=Krawg 16 11}
#dialogue starts
[message]
description=Rugnur
@ -155,7 +180,7 @@
[/message]
[message]
description=Rugnur
message= _ "Uh, technically it's Haldric's, and I think that if Thursagan needs to see to plan this sceptre, he can."
message= _ "Uh, technically it's Haldric's, and I think that if Thursagan needs to see it to plan this sceptre, he can."
[/message]
[message]
description=Durstorn
@ -234,20 +259,6 @@
#me too
message= _ "M' 'u!"
[/message]
[store_unit]
[filter]
description=Alanin
[/filter]
variable=alanin
kill=yes
[/store_unit]
[store_unit]
[filter]
description=Krawg
[/filter]
variable=krawg
kill=yes
[/store_unit]
[endlevel]
result=continue
[/endlevel]

View file

@ -40,20 +40,25 @@
[event]
name=prestart
[terrain_mask]
x,y=1,1
mask="{@campaigns/Sceptre_of_Fire/maps/4_Gathering_Materials-random.mask}"
[rule]
old=Uu
new=Uu^Ii,Uu^Uf,Uh,Ww,Cud
[/rule]
# Alanin and Krawg are taking a break
[rule]
old=Xu,Cud,Kud
use_old=yes
[/rule]
[/terrain_mask]
[store_unit]
[filter]
description=Alanin
[/filter]
variable=alanin
kill=yes
[/store_unit]
[store_unit]
[filter]
description=Krawg
[/filter]
variable=krawg
kill=yes
[/store_unit]
[store_locations]
[filter]
@ -70,9 +75,137 @@
variable=resource_return_locations
[/store_locations]
# Here we need to randomize the coal and gold locations by
# hand, because the map generator can otherwise sometimes place
# them inside cavewall.
# The first coal pile is somewhere near where side 2 starts
[store_locations]
[filter]
side=2
canrecruit=1
[/filter]
radius=5
[filter_radius]
terrain=!,Xu,Qxu
[/filter_radius]
variable=possible_coal_1_locations
[/store_locations]
{RANDOM 1..$possible_coal_1_locations.length}
{VARIABLE_OP random add -1}
{VARIABLE coal_1.x $possible_coal_1_locations[$random].x}
{VARIABLE coal_1.y $possible_coal_1_locations[$random].y}
# The second coal pile is somewhere near where side 2 starts
[store_locations]
[filter]
side=4
canrecruit=1
[/filter]
radius=5
[filter_radius]
terrain=!,Xu,Qxu
[/filter_radius]
variable=possible_coal_2_locations
[/store_locations]
{RANDOM 1..$possible_coal_2_locations.length}
{VARIABLE_OP random add -1}
{VARIABLE coal_2.x $possible_coal_2_locations[$random].x}
{VARIABLE coal_2.y $possible_coal_2_locations[$random].y}
# And the gold pile is 8-12 hexes away from where side 3 starts
[store_locations]
[and]
[filter]
side=3
canrecruit=1
[/filter]
radius=12
[filter_radius]
terrain=!,Xu,Qxu
[/filter_radius]
[/and]
[not]
[filter]
side=3
canrecruit=1
[/filter]
radius=8
[filter_radius]
terrain=!,Xu,Qxu
[/filter_radius]
[/not]
variable=possible_gold_locations
[/store_locations]
{RANDOM 1..$possible_gold_locations.length}
{VARIABLE_OP random add -1}
{VARIABLE gold_1.x $possible_gold_locations[$random].x}
{VARIABLE gold_1.y $possible_gold_locations[$random].y}
[item]
image=items/gold.png
x,y=$gold_1.x,$gold_1.y
[/item]
[item]
image=items/coal.png
x,y=$coal_1.x,$coal_1.y
[/item]
[item]
image=items/coal.png
x,y=$coal_2.x,$coal_2.y
[/item]
{VARIABLE coalin 0}
{VARIABLE goldin 0}
{CLEAR_VARIABLE possible_coal_1_locations}
{CLEAR_VARIABLE possible_coal_2_locations}
{CLEAR_VARIABLE possible_gold_locations}
# Here we overlay a mask containing a rather random pattern of
# suitable terrains on the map, because the map generator itself
# only places the very basic terrains (floor, walls, etc)
[terrain_mask]
x,y=1,1
mask="{@campaigns/Sceptre_of_Fire/maps/4_Gathering_Materials-random.mask}"
[rule]
old=Uu
new=Uu^Ii,Uu^Uf,Uh,Ww,Cud
[/rule]
[rule]
old=Xu,Cud,Kud
use_old=yes
[/rule]
[/terrain_mask]
[objectives]
side=1
[objective]
@ -146,6 +279,158 @@
[/allow_recruit]
[/event]
[event]
name=moveto
[filter]
x,y=$coal_1.x,$coal_1.y
[or]
x,y=$coal_2.x,$coal_2.y
[/or]
[and]
side=1
[not]
type=Dwarvish Miner
[/not]
[/and]
[/filter]
[message]
speaker=unit
message= _ "Here is some of the coal that we need! Bring the miners to take it!"
[/message]
[allow_undo][/allow_undo]
[/event]
[event]
name=moveto
[filter]
x,y=$coal_1.x,$coal_1.y
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[message]
speaker=unit
message= _ "I have all the coal I can carry..."
[/message]
{VARIABLE unit.role has_coal}
[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
x,y=$x1,$y1
[/removeitem]
[/event]
[event]
name=moveto
[filter]
x,y=$coal_2.x,$coal_2.y
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[message]
speaker=unit
message= _ "I have all the coal I can carry..."
[/message]
{VARIABLE unit.role has_coal}
[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
x,y=$x1,$y1
[/removeitem]
[/event]
[event]
name=moveto
[filter]
x,y=$gold_1.x,$gold_1.y
side=1
[not]
type=Dwarvish Miner
[/not]
[/filter]
[message]
speaker=unit
message= _ "Here is the mine of precious gold! Send the miners this way."
[/message]
[allow_undo][/allow_undo]
[/event]
[event]
name=moveto
[filter]
x,y=$gold_1.x,$gold_1.y
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[message]
speaker=unit
message= _ "I have all the gold I can carry..."
[/message]
{VARIABLE unit.role has_gold}
[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
[unit_overlay]
x,y=$x1,$y1
image=misc/gold-icon.png
[/unit_overlay]
[removeitem]
x,y=$x1,$y1
[/removeitem]
[/event]
# If a miner carrying coal dies, we let others pick it up
[event]
@ -173,6 +458,14 @@
[filter]
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[if]
@ -239,6 +532,14 @@
[filter]
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[if]
@ -396,12 +697,7 @@
description=Thursagan
message= _ "This is all we need from these mines. Now we should go back further west, where there are no trolls and ogres, and mine there."
[/message]
[clear_variable]
name=coalin
[/clear_variable]
[clear_variable]
name=goldin
[/clear_variable]
[endlevel]
result=victory
bonus=yes
@ -425,6 +721,12 @@
{CLEAR_VARIABLE alanin}
{CLEAR_VARIABLE krawg}
{CLEAR_VARIABLE coalin}
{CLEAR_VARIABLE goldin}
{CLEAR_VARIABLE coal_1}
{CLEAR_VARIABLE coal_2}
{CLEAR_VARIABLE gold_1}
{CLEAR_VARIABLE resource_return_locations}
[kill]
@ -433,17 +735,17 @@
[/event]
[/settings]
map_width=40
map_height=40
map_width=45
map_height=45
flipx_chance=0
village_density=50
#the chamber with the player. Near the south-west corner
[chamber]
id=player
x=0-10
y=28-38
size=8
x=10-15
y=32-38
size=7
jagged=40
[items]
[side]
@ -463,7 +765,7 @@
id=coal1
x=28-35
y=28-35
size=6
size=8
[passage]
chance=70
width=1
@ -472,19 +774,19 @@
[/passage]
[passage]
chance=50
width=1
width=2
windiness=5
destination=coal2
[/passage]
[passage]
chance=50
width=1
windiness=10
width=2
windiness=5
destination=gold
[/passage]
[passage]
chance=50
width=1
width=2
windiness=10
destination=coal2
[/passage]
@ -502,51 +804,6 @@
team_name=trolls
{GOLD 50 70 90}
[/side]
[item]
image=items/coal.png
[/item]
[event]
same_location_as_previous=yes
name=moveto
[filter]
side=1
[not]
type=Dwarvish Miner
[/not]
[/filter]
[message]
speaker=unit
message= _ "Here is some of the coal that we need! Bring the miners to take it!"
[/message]
[/event]
[event]
same_location_as_previous=yes
name=moveto
[filter]
side=1
type=Dwarvish Miner
[/filter]
[message]
speaker=unit
message= _ "I have all the coal I can carry..."
[/message]
{VARIABLE unit.role has_coal}
[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
x,y=$x1,$y1
[/removeitem]
[/event]
[/items]
[/chamber]
@ -558,27 +815,27 @@
size=8
jagged=50
[passage]
chance=70
width=1
windiness=5
chance=100
width=2
windiness=10
destination=coal1
[/passage]
[passage]
chance=70
width=1
windiness=5
chance=100
width=2
windiness=10
destination=coal2
[/passage]
[passage]
chance=50
width=1
windiness=10
windiness=5
destination=coal1
[/passage]
[passage]
chance=50
width=1
windiness=10
windiness=5
destination=coal2
[/passage]
[items]
@ -601,9 +858,9 @@
#chamber with the second coal mine. Somewhere in the north-west.
[chamber]
id=coal2
x=5-12
y=5-12
size=6
x=8-12
y=8-12
size=7
[passage]
chance=70
width=1
@ -612,20 +869,20 @@
[/passage]
[passage]
chance=50
width=1
width=2
windiness=5
destination=coal1
[/passage]
[passage]
chance=50
width=1
windiness=10
width=2
windiness=5
destination=gold
[/passage]
[passage]
chance=50
width=1
windiness=10
windiness=5
destination=coal1
[/passage]
[items]
@ -641,57 +898,6 @@
recruit=Goblin Spearman,Young Ogre
{GOLD 50 70 90}
[/side]
[item]
image=items/coal.png
[/item]
[event]
same_location_as_previous=yes
name=moveto
[filter]
side=1
[not]
type=Dwarvish Miner
[/not]
[/filter]
[message]
speaker=unit
message= _ "Here is some of the coal that we need! Bring the miners to take it!"
[/message]
[/event]
[event]
same_location_as_previous=yes
name=moveto
[filter]
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[message]
speaker=unit
message= _ "I have all the coal I can carry..."
[/message]
{VARIABLE unit.role has_coal}
[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
x,y=$x1,$y1
[/removeitem]
[/event]
[/items]
[/chamber]
@ -706,78 +912,22 @@
destination=player
width=2
windiness=10
jagged=5
[/passage]
[passage]
destination=coal1
width=2
windiness=10
jagged=5
[/passage]
[passage]
destination=coal2
width=2
windiness=10
jagged=5
[/passage]
[passage]
destination=gold
width=2
windiness=10
jagged=5
[/passage]
[items]
[item]
image=items/gold.png
[/item]
[event]
same_location_as_previous=yes
name=moveto
[filter]
side=1
[not]
type=Dwarvish Miner
[/not]
[/filter]
[message]
speaker=unit
message= _ "Here is the mine of precious gold! Send the miners this way."
[/message]
[/event]
[event]
same_location_as_previous=yes
name=moveto
[filter]
side=1
type=Dwarvish Miner
[not]
role=has_coal
[/not]
[not]
role=has_gold
[/not]
[/filter]
[message]
speaker=unit
message= _ "I have all the gold I can carry..."
[/message]
{VARIABLE unit.role has_gold}
[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
[unit_overlay]
x,y=$x1,$y1
image=misc/gold-icon.png
[/unit_overlay]
[removeitem]
x,y=$x1,$y1
[/removeitem]
[/event]
[/items]
[/chamber]
[/generator]
[/scenario]

View file

@ -48,6 +48,7 @@
[event]
name=prestart
#Durstorn's guard
[unit]
x,y=12,11
@ -93,6 +94,26 @@
{TRAIT_QUICK}
[/modifications]
[/unit]
[item]
x,y=8,9
image=items/brazier-lit1.png
[/item]
[item]
x,y=14,9
image=items/brazier-lit1.png
[/item]
[item]
x,y=14,12
image=items/brazier-lit1.png
[/item]
[item]
x,y=8,12
image=items/brazier-lit1.png
[/item]
[/event]
[event]
@ -101,15 +122,19 @@
{MOVE_UNIT description=Rugnur 15 14}
[recall]
description=Alanin
x,y=17,14
[/recall]
[recall]
description=Baglur
x,y=16,12
[/recall]
[recall]
description=Krawg
x,y=15,16
[/recall]
[recall]
description=Thursagan
x,y=13,13
[/recall]
#dialogue starts
[message]