Including Flesh Golem in the dialog check.

Checking dialog and event activation for companion units in scenarios 6-9.
This commit is contained in:
Jan Rietema 2007-11-04 14:34:47 +00:00
parent 26ef18974e
commit 8744848222
8 changed files with 231 additions and 34 deletions

View file

@ -2372,6 +2372,9 @@
radius=8
terrain=Hd, Dd, Rr
[/store_locations]
{CLEAR_VARIABLE ghost_x}
{CLEAR_VARIABLE ghost_y}
{VARIABLE i 0}
[while]

View file

@ -192,6 +192,8 @@
story= _ "Chapter 6: The dwarf Grendel led us through a maze of twisting passages speaking scarcely a word. Finally, after what seemed like hours of marching, he stopped. He motioned us to be very quiet and we crept forward; all I could hear was the soft patter of feet and my heavy breathing. Even that little noise seemed to echo off the cramped walls of our rough-hewn passage. I was suddenly aware of the sheer mass of rock and earth above us and for a moment I despaired of ever seeing the sun again. Then I grabbed my sword with fresh determination and vowed to see this mission through."
[/part]
[/story]
{@campaigns/Under_the_Burning_Suns/utils/dialog-macros.cfg}
# Prestart functions:
# set starting scenario objectives
@ -901,10 +903,12 @@
animate=yes
[/kill]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "If we move fast we might be able to save the other prisoner before he gets killed too."
[/message]
{CLEAR_VARIABLE explorer}
[/event]
# Event 2.2: Wounded Dwarf
@ -1288,13 +1292,14 @@
[redraw]
[/redraw]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "Woah. This place is hot."
[/message]
[message]
speaker=unit
description=$explorer.description
message= _ "This cavern is so hot it's stifling; I can already feel my armor heating up. If we tarry here too long we'll roast alive. I don't even want to think about what would happen if I tried to walk across the lava. On the other hand, the lava does light up the cavern nicely. I'm just thankful the trolls constructed a bridge across the lava."
[/message]
@ -1351,9 +1356,10 @@
[/kill]
[message]
speaker=unit
speaker=description=$explorer.description
message= _ "Uh, I take that back. Still, the trolls don't seem to be advancing. I guess they think the lava can hold us back. Well, we'll show them. It will take more than a little heat to stop us!"
[/message]
{CLEAR_VARIABLE explorer}
[message]
speaker=narrator
@ -1394,10 +1400,12 @@
multiply=-1
[/set_variable]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "There is a small pool of water here. It must come from some spring deep underground. The water is cool and refreshing. Let me bathe in it a while and recover from the heat of that blasted cavern."
[/message]
{CLEAR_VARIABLE explorer}
[message]
speaker=narrator
@ -1679,10 +1687,12 @@
{UNIT_ (Lava Monster3) (Fire Guardian) ( _ "Fire Guardian") 5 26 18}
#endif
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "Look, more fire guardians!"
[/message]
{CLEAR_VARIABLE explorer}
[/then]
[/if]
[/event]
@ -1728,10 +1738,12 @@
{UNIT_ (Lava Monster3) (Fire Guardian) ( _ "Fire Guardian") 5 27 22}
#endif
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "Oh great, even more fire guardians. When I get through this inferno I'm going to kill those trolls."
[/message]
{CLEAR_VARIABLE explorer}
[/then]
[/if]
[/event]
@ -1776,11 +1788,12 @@
{UNIT_ (Lava Monster3) (Fire Guardian) ( _ "Fire Guardian") 5 22 16}
{UNIT_ (Lava Monster3) (Fire Guardian) ( _ "Fire Guardian") 5 22 17}
#endif
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "How surprising, more fire guardians. I'm going to be really glad to get out of this cavern."
[/message]
{CLEAR_VARIABLE explorer}
[/then]
[/if]
[/event]
@ -2196,6 +2209,9 @@
x=7-11
y=17-21
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]
@ -2254,6 +2270,9 @@
x=14
y=12-13
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]
@ -2321,6 +2340,9 @@
x=7-9
y=20-25
side=1
[not]
type=Dust Devil
[/not]
[/filter]
{UNIT_ Soulless cryptguard ( _ "Crypt Guardian") 4 7 25}
@ -2341,6 +2363,9 @@
x=5-6
y=26
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[message]
@ -2359,6 +2384,9 @@
x=3
y=28
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]

View file

@ -255,6 +255,8 @@
[/part]
[/story]
{@campaigns/Under_the_Burning_Suns/utils/dialog-macros.cfg}
# Prestart functions:
# set starting scenario objectives
# increase cost of recruiting units
@ -1350,10 +1352,12 @@
side=1
[/filter]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "It's a huge underground lake. The water looks dark and deep and is cold to the touch. There also seems to be some glowing moss on the walls which illuminates the cavern, making it easier to see."
[/message]
{CLEAR_VARIABLE explorer}
[/event]
#activate bats and create dwarvish hermit unit
@ -1467,10 +1471,12 @@
message= _ "Grrraaawwwkkk!"
[/message]
{CHECK_SPEAKER}
[message]
speaker=second_unit
description=$speaking_unit.description
message= _ "Good riddance."
[/message]
{CLEAR_VARIABLE speaking_unit}
[/event]
# allow units around lake to look out over deep water
@ -1557,6 +1563,9 @@
x=27
y=17
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[message]
@ -2095,10 +2104,12 @@
message= _ "Splash! Splash!"
[/message]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "More tentacles?!? What, did that thing have a baby?"
[/message]
{CLEAR_VARIABLE explorer}
[/event]
# Event 20: Moveto rune statue, open door events
@ -2110,6 +2121,9 @@
[filter]
x,y=45,21
side=1
[not]
type=Dust Devil
[/not]
[/filter]
# if dwarf_amulet = 1 open door desc set dwarf_door to 2
@ -2227,6 +2241,9 @@
x=49
y=24
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]

View file

@ -762,6 +762,9 @@
[not]
description=Elyssa
[/not]
[not]
type=Dust Devil
[/not]
side=1
[/filter]

View file

@ -761,6 +761,9 @@
[not]
description=Elyssa
[/not]
[not]
type=Dust Devil
[/not]
side=1
[/filter]
@ -825,6 +828,8 @@
[/option]
[/message]
[/event]
#undef ELYSSA_FEATURING
{@campaigns/Under_the_Burning_Suns/utils/kaleh-abilities.cfg}
{@campaigns/Under_the_Burning_Suns/utils/global-events.cfg}

View file

@ -352,6 +352,8 @@
[/part]
[/story]
{@campaigns/Under_the_Burning_Suns/utils/dialog-macros.cfg}
# Prestart functions:
# insert items onto map
# kill Elyssa to keep her from being recruited
@ -1252,6 +1254,9 @@
x=36-42
y=45-53
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[terrain]
@ -1423,6 +1428,9 @@
x=30-34
y=43-48
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[terrain]
@ -1722,10 +1730,12 @@
[/then]
[else]
{CHECK_SPEAKER}
[message]
speaker=second_unit
description=$speaking_unit.description
message= _ "Fish bait? Hermit Crabs? Who are these humans and what were they talking about?"
[/message]
{CLEAR_VARIABLE speaking_unit}
[/else]
[/if]
[/then]
@ -1754,10 +1764,12 @@
[/then]
[else]
{CHECK_SPEAKER}
[message]
speaker=second_unit
description=$speaking_unit.description
message= _ "Fish bait? Barnacles? Who are these humans and what were they talking about?"
[/message]
{CLEAR_VARIABLE speaking_unit}
[/else]
[/if]
[/then]
@ -1855,10 +1867,12 @@
[/variable]
[then]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "Woah, what is this place? It sure seems well protected."
[/message]
{CLEAR_VARIABLE explorer}
[message]
description=$ally_name
@ -1906,6 +1920,9 @@
x=24
y=49
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[store_locations]
@ -1969,6 +1986,9 @@
x=13
y=50
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[store_locations]
@ -2046,6 +2066,9 @@
x=19-24,21
y=45-47,48
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]
@ -2151,6 +2174,9 @@
x=16-21
y=41-45
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[remove_shroud]
@ -2228,6 +2254,9 @@
x=17
y=44
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]
@ -2313,6 +2342,9 @@
x=19
y=43
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]
@ -2423,13 +2455,14 @@
side=1
[/remove_shroud]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "There isn't much left of the furnishings of this room. I think it was some sort of storeroom, but it looks like scavengers have taken anything useful."
[/message]
[message]
speaker=unit
description=$explorer.description
message= _ "Curse Uria! The water is rising over here as well. Already the western end of this chamber is flooded. And I think I see shapes rising out of the water. Whatever they are, it can't be good."
[/message]
@ -2452,6 +2485,9 @@
x=8-13
y=40-44
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[remove_shroud]
@ -2549,6 +2585,9 @@
[message]
x,y=8-14,40-45
side=1
[not]
type=Dust Devil
[/not]
message= _ "Wait a minute, I don't see any targets or practice dummies. Who are they supposed to be attacking?"
[/message]
@ -2860,6 +2899,9 @@
x=13-19
y=36-40
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[remove_shroud]
@ -2924,6 +2966,9 @@
x=17
y=36
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[message]
@ -2965,6 +3010,9 @@
x=16-20
y=27-34
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[remove_shroud]
@ -3076,6 +3124,9 @@
x=17-19
y=28-30
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[if]
@ -3175,6 +3226,12 @@
x=5-10
y=32-37
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/filter]
[remove_shroud]
@ -3294,6 +3351,12 @@
x=5-7
y=32-34
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/filter]
[if]
@ -3407,10 +3470,12 @@
side=1
[/remove_shroud]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "This looks like some kind of burial chamber."
[/message]
{CLEAR_VARIABLE explorer}
[message]
description=Zhul
@ -3454,14 +3519,29 @@
y=19-24
side=1
[/remove_shroud]
[store_locations]
variable=cloaked
x=$x1
y=$y1
radius=1
[not]
terrain=Xu
[/not]
[not]
[filter]
side=1
[/filter]
[/not]
[/store_locations]
[unit]
type=Dark Assassin3
description=Cloaked Figure
user_description= _ "Cloaked Figure"
side=7
x=10
y=19
x=$cloaked.x
y=$cloaked.y
[modifications]
{TRAIT_INTELLIGENT}
{TRAIT_RESILIENT}
@ -3562,6 +3642,12 @@
x=12-20
y=1-18
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/filter]
[message]
@ -3756,13 +3842,14 @@
add=10
[/set_variable]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "Look, daylight! I think we finally made it out of the caves!"
[/message]
[message]
speaker=unit
description=$explorer.description
message= _ "What's this? Someone has built an outpost at the end of the cave. Where are its occupants?"
[/message]
@ -3782,7 +3869,7 @@
[then]
[message]
speaker=unit
description=$explorer.description
message= _ "Kaleh, I think you should come up and see this."
[/message]
@ -3790,6 +3877,7 @@
[/then]
[/if]
{CLEAR_VARIABLE explorer}
{CLEAR_VARIABLE kalehtest}
[message]
@ -4156,6 +4244,12 @@
[filter]
x,y=17,21
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/filter]
{PLACE_IMAGE items/chest-plain-open.png 17 21}
@ -4205,6 +4299,9 @@
x=25-50
y=19-31
side=1
[not]
type=Dust Devil
[/not]
[/filter]
[store_locations]
@ -4329,8 +4426,9 @@
message= _ "Can you see very far? Do you have any idea where we are?"
[/message]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "We've come out on the side of a mountain, overlooking a large valley. The land seems to be much the same as the foothills south of the mountains. The valley is filled with sand dunes, though the center is flat. There seems to be some sort of settlement in the center of the valley. And far to the north I can see something sparkling on the horizon, but I don't know what it is."
[/message]
@ -4502,7 +4600,7 @@
[then]
[message]
speaker=unit
description=$explorer.description
message= _ "Kaleh, who are you talking to?"
[/message]
@ -5889,6 +5987,12 @@
x=26-50
y=1-33
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/have_unit]
[variable]
@ -5906,6 +6010,12 @@
x=26-50
y=1-33
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
message= _ "Look, the water is pouring out the side tunnel into the valley! That's a lot of water: it's even creating a small river. I sure wouldn't want to be downstream of that deluge right now."
[/message]
[/then]
@ -5916,6 +6026,12 @@
x=21-37
y=18-33
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/have_unit]
[variable]
@ -5933,6 +6049,12 @@
x=21-37
y=18-33
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
message= _ "Look, the water is pouring out the side tunnel into the valley! That's a lot of water: it's even creating a small river. I sure wouldn't want to be downstream of that deluge right now."
[/message]
[/then]
@ -5953,6 +6075,12 @@
x=26-50
y=1-33
side=1
[not]
type=Dust Devil
[/not]
[not]
type=Flesh Golem
[/not]
[/filter]
[allow_undo]

View file

@ -345,6 +345,8 @@
story= _ "Which brings me to the other alien concept I was trying to figure out: our goddess Eloh. What was her plan? Why did she want me to surrender to the humans? Do the humans worship her as well? The humans seem so brutish and vile, that I can't imagine them worshipping the same god. I thought Eloh was just our god, I don't remember Zhul mentioning any other races worshipping her after the Great Fall, though perhaps things have changed. Her commands don't make any sense; she doesn't seem at all like the goddess Zhul told me about. And what was Esanoo talking about? How did his master know about 'Yechnagoth' and 'Yanqui'? If Eloh won't help me, then I really need some answers. I pray to whatever gods may be left that I'm not leading my people into a trap..."
[/part]
[/story]
{@campaigns/Under_the_Burning_Suns/utils/dialog-macros.cfg}
# Prestart functions:
# increase cost of all units by 1
@ -1851,7 +1853,8 @@
[/message]
[message]
speaker=unit
description=$unit.description
race=elf
message= _ "As I envy your kind's prowess when fighting in the water."
[/message]
[/else]
@ -2177,8 +2180,9 @@
message= _ "Thank you for rescuing me. How did you manage to escape?"
[/message]
{CHECK_EXPLORER}
[message]
speaker=unit
description=$explorer.description
message= _ "Esanoo found the elves that we were searching for. He brought them back and they helped free us. I can't believe the humans imprisoned you in such a horrible place. To be stuck in the darkness with those undead. We will make them pay for what they have done!"
[/message]
@ -2188,9 +2192,10 @@
[/message]
[message]
speaker=unit
description=$explorer.description
message= _ "Yes, you are right, of course. Pardon me."
[/message]
{CLEAR_VARIABLE explorer}
[set_variable]
name=number_merfolk_freed
@ -2339,9 +2344,7 @@
[filter]
side=1
[not]
race=merman
[/not]
race=elf
[/filter]
[allow_undo]
@ -2402,9 +2405,7 @@
[filter]
x,y=6,38
side=1
[not]
race=merman
[/not]
race=elf
[/filter]
[if]

View file

@ -7,6 +7,12 @@
name=unit.type
equals=Dust Devil
[/variable]
[or]
[variable]
name=unit.type
equals="Flesh Golem"
[/variable]
[/or]
[then]
[store_unit]
variable=explorer
@ -35,6 +41,12 @@
name=second_unit.type
equals=Dust Devil
[/variable]
[or]
[variable]
name=second_unit.type
equals="Flesh Golem"
[/variable]
[/or]
[then]
[store_unit]
variable=speaking_unit