UtBS: Fix some TODOs

This commit is contained in:
DisherProject 2019-04-11 22:42:48 +02:00 committed by nemaara
parent 86017cb7ee
commit 5c23c5b65e
4 changed files with 79 additions and 59 deletions

View file

@ -54,11 +54,8 @@
controller=ai
{GOLD 125 150 175}
{INCOME 15 18 21}
#ifdef HARD
recruit=Deathblade,Revenant,Bone Shooter,Skeleton Rider
#else
recruit=Skeleton,Skeleton Archer,Skeleton Rider
#endif
[ai]
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.9}
@ -113,11 +110,8 @@
controller=ai
{GOLD 125 150 175}
{INCOME 15 18 21}
#ifdef HARD
recruit=Blood Bat,Necrophage,Wraith,Soulless
#else
recruit=Vampire Bat,Ghoul,Ghost,Walking Corpse
#endif
[ai]
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.9}
@ -607,13 +601,12 @@
# Instead with providing AI with higher lvl units on medium
# and hard give it highly experienced lvl1's
#ifdef NORMAL
#ifndef EASY
# Change the difficulty increase model from having computer
# recruit some lvl2 and 3 units outright to advancing or
# half-advancing recruited lvl 1. At the same time, guarantees
# broader spectrum of opposing units, as AI advancement is random.
# Internal variables : $factor
# TODO: Should this happen on HARD too (would need to change recruit list to match)
[event]
name=recruit
first_time_only=no
@ -621,15 +614,13 @@
side=2,3,4
[/filter]
{VARIABLE factor $unit.max_experience}
{VARIABLE_OP factor multiply 0.5}
{VARIABLE_OP factor round 0}
{RANDOM $factor..$unit.max_experience}
{VARIABLE min_experience "$(floor($unit.max_experience * {ON_DIFFICULTY 0 0.5 0.75}))"}
{RANDOM "$min_experience..$($unit.max_experience - 1)"}
{VARIABLE unit.experience $random}
[unstore_unit]
variable=unit
[/unstore_unit]
{CLEAR_VARIABLE factor}
{CLEAR_VARIABLE min_experience,random}
[/event]
#endif

View file

@ -270,19 +270,6 @@
[ai]
aggression=0.90
caution=0.10
#ifdef WIP
# TODO: make assassin attack Kaleh more than other units
# This goal doesn't have that effect
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=20
[/goal]
#endif
[/ai]
[/side]
@ -2410,6 +2397,19 @@
[/modifications]
[/unit]
[micro_ai]
side=7
ai_type=assassin
action=add
[filter]
id=Cloaked Figure
[/filter]
[filter_second]
id=Kaleh
[/filter_second]
[/micro_ai]
[message]
speaker=Cloaked Figure
image=portraits/cloaked.png
@ -2442,11 +2442,9 @@
{ALLY_REINFORCEMENTS}
[/event]
#TODO 23 turns after the player entered the big cave?
#isn't that a little too long?
[set_variable]
name=assassin_turn
rand=13..23
rand=13..18
[/set_variable]
[event]
name="turn $($turn_number|+$assassin_turn|)"
@ -2562,6 +2560,12 @@
fire_event=no
[/kill]
[micro_ai]
side=7
ai_type=assassin
action=delete
[/micro_ai]
[message]
speaker=Kaleh
message= _ "Where did he go? How does he disappear like that? And what in Urias name was he ranting about? Whoever that is is starting to make me get edgy."

View file

@ -139,17 +139,6 @@
[ai]
aggression=0.90
caution=0.10
#ifdef WIP
# TODO: Make them attack Kaleh more
# This goal doesn't have that effec
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=20
[/goal]
#endif
[/ai]
[/side]
@ -260,6 +249,25 @@
{INCREASE_RECRUIT_COSTS 1}
# Try simulating tentacles preferring Kaleh as a target.
# No more than 2 tentacles should focus him, the others
# will choose other victims.
[micro_ai]
side=5
ai_type=simple_attack
action=add
[filter_second]
id=Kaleh
[not]
[filter_adjacent]
side=5
count=3-6
[/filter_adjacent]
[/not]
[/filter_second]
[/micro_ai]
#secret tomb furnishings
{PLACE_IMAGE items/rune-violet2.png 45 21}
{PLACE_IMAGE items/coffin-closed.png 49 24}
@ -1741,6 +1749,12 @@
[event]
name=victory
[micro_ai]
side=5
ai_type=simple_attack
action=delete
[/micro_ai]
{CLEAR_VARIABLE tentacle_count}
[/event]

View file

@ -1736,18 +1736,37 @@
speaker=Tanstafaal
message= _ "Behold, our goddess has returned to us. All bow down to Eloh, our savior!"
[/message]
#TODO: add better role-based speaker selection
[message]
[role]
type_adv_tree=Quenoth Mystic
side=1
[not]
id=Zhul
[/not]
role=mystic_speaker
[/role]
[role]
type_adv_tree=Quenoth Fighter
side=1
role=fighter_speaker
[/role]
[role]
type_adv_tree=Quenoth Scout
side=1
role=scout_speaker
[/role]
[role]
type_adv_tree=Tauroch Rider
side=1
role=rider_speaker
[/role]
[message]
role=mystic_speaker
message= _ "The Goddess!"
[/message]
[message]
type_adv_tree=Quenoth Fighter
side=1
role=fighter_speaker
message= _ "Forgive me my sins!"
[/message]
[message]
@ -1763,21 +1782,15 @@
message= _ "I come to you with dire news: one of you has betrayed me, and is a traitor to your cause."
[/message]
[message]
type_adv_tree=Quenoth Mystic
[not]
id=Zhul
[/not]
side=1
role=mystic_speaker
message= _ "What?"
[/message]
[message]
type_adv_tree=Quenoth Scout
side=1
role=scout_speaker
message= _ "No!"
[/message]
[message]
type_adv_tree=Tauroch Rider
side=1
role=rider_speaker
message= _ "Who?"
[/message]
[message]
@ -1807,8 +1820,7 @@
message= _ "Wait, my people, do not be deceived. This thing that appears by Tanstafaals side is not our god. I too was fooled at first, but I have come to realize by her actions that she is an impostor. When she appeared to me the night before Garak died, she told me to kill all that lived under the mountains, even the dwarves who ended up helping us. Likewise when we escaped from the caves, she appeared to me again, and told me to bow down to the humans, else she would destroy me. Never has Eloh threatened one of us or dictated our actions."
[/message]
[message]
type_adv_tree=Quenoth Fighter,Quenoth Scout
side=1
role=fighter_speaker
message= _ "Why should we trust you? We have not heard Elohs words directly. Only now that you have led us into this folly has Eloh appeared to us."
[/message]
[message]
@ -1822,8 +1834,7 @@
message= _ "Wait, my people, do not be deceived. This thing that appears by Tanstafaals side is not our god. I too was fooled at first, but I have come to realize by her actions that she is an impostor. When she appeared to me the night before Garak died, she told me to kill all that lived under the mountains, even the trolls who ended up helping us. Likewise when we escaped from the caves, she appeared to me again, and told me to bow down to the humans, else she would destroy me. Never has Eloh threatened one of us or dictated our actions."
[/message]
[message]
type_adv_tree=Quenoth Fighter,Quenoth Scout
side=1
role=fighter_speaker
message= _ "Why should we trust you? We have not heard these words directly. Only now that you have led us into this folly has she appeared to us."
[/message]
[message]