Get rid of ghosts_talk variable
This commit is contained in:
parent
eaaffc12f3
commit
ed068b06cc
1 changed files with 58 additions and 70 deletions
|
@ -242,8 +242,7 @@
|
||||||
[/label]
|
[/label]
|
||||||
|
|
||||||
# shroud MUST be removed in prestart for the label
|
# shroud MUST be removed in prestart for the label
|
||||||
# info to get updated correctly before the player’s
|
# info to get updated correctly before the player’s turn
|
||||||
# turn
|
|
||||||
[remove_shroud]
|
[remove_shroud]
|
||||||
side=1
|
side=1
|
||||||
x=19,19,20,21,22,21,20,21,22,20,22,21,23,23
|
x=19,19,20,21,22,21,20,21,22,20,22,21,23,23
|
||||||
|
@ -330,7 +329,6 @@
|
||||||
message= _ "Well, the sooner we reach Pinnacle Rock, the better. Onwards!"
|
message= _ "Well, the sooner we reach Pinnacle Rock, the better. Onwards!"
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
{VARIABLE ghosts_talk 0}
|
|
||||||
# setup ghost difficulty
|
# setup ghost difficulty
|
||||||
#ifdef EASY
|
#ifdef EASY
|
||||||
{VARIABLE max_ghosts 6}
|
{VARIABLE max_ghosts 6}
|
||||||
|
@ -1811,7 +1809,6 @@
|
||||||
{CLEAR_VARIABLE ghosts}
|
{CLEAR_VARIABLE ghosts}
|
||||||
{CLEAR_VARIABLE ghosts_already_spawned}
|
{CLEAR_VARIABLE ghosts_already_spawned}
|
||||||
{CLEAR_VARIABLE ghosts_killed}
|
{CLEAR_VARIABLE ghosts_killed}
|
||||||
{CLEAR_VARIABLE ghosts_talk}
|
|
||||||
{CLEAR_VARIABLE hunting_ogres_found}
|
{CLEAR_VARIABLE hunting_ogres_found}
|
||||||
{CLEAR_VARIABLE max_ghosts}
|
{CLEAR_VARIABLE max_ghosts}
|
||||||
{CLEAR_VARIABLE max_per_turn}
|
{CLEAR_VARIABLE max_per_turn}
|
||||||
|
@ -2029,13 +2026,19 @@
|
||||||
[/while]
|
[/while]
|
||||||
{CLEAR_VARIABLE spawn}
|
{CLEAR_VARIABLE spawn}
|
||||||
# some ghosts dialogue
|
# some ghosts dialogue
|
||||||
[if]
|
|
||||||
[variable]
|
[fire_event]
|
||||||
|
name=ghosts_talk
|
||||||
|
[/fire_event]
|
||||||
|
[/then]
|
||||||
|
[/if]
|
||||||
|
[/then]
|
||||||
|
[/if]
|
||||||
|
{CLEAR_VARIABLE turn_temp}
|
||||||
|
[/event]
|
||||||
|
|
||||||
|
[event]
|
||||||
name=ghosts_talk
|
name=ghosts_talk
|
||||||
less_than=1
|
|
||||||
[/variable]
|
|
||||||
[then]
|
|
||||||
{VARIABLE ghosts_talk 1}
|
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Garak
|
speaker=Garak
|
||||||
|
@ -2046,34 +2049,6 @@
|
||||||
speaker=Zhul
|
speaker=Zhul
|
||||||
message= _ "The combination of the heat of the day and the rising undead make dusk a particularly dangerous time of day."
|
message= _ "The combination of the heat of the day and the rising undead make dusk a particularly dangerous time of day."
|
||||||
[/message]
|
[/message]
|
||||||
[/then]
|
|
||||||
[else]
|
|
||||||
[if]
|
|
||||||
[variable]
|
|
||||||
name=ghosts_talk
|
|
||||||
equals=2
|
|
||||||
[/variable]
|
|
||||||
[then]
|
|
||||||
{VARIABLE ghosts_talk 3}
|
|
||||||
|
|
||||||
[message]
|
|
||||||
speaker=Kaleh
|
|
||||||
message= _ "You come and rise again, spirits? Have we not defeated you before?"
|
|
||||||
[/message]
|
|
||||||
|
|
||||||
[message]
|
|
||||||
speaker=Zhul
|
|
||||||
message= _ "These lost souls cannot hold onto anything but memories of lives long gone. They will rise to plague us again, night after night."
|
|
||||||
[/message]
|
|
||||||
[/then]
|
|
||||||
[/if]
|
|
||||||
[/else]
|
|
||||||
[/if]
|
|
||||||
[/then]
|
|
||||||
[/if]
|
|
||||||
[/then]
|
|
||||||
[/if]
|
|
||||||
{CLEAR_VARIABLE turn_temp}
|
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
# If player kills more than 33% of the maximum number of lost souls, the rest flee
|
# If player kills more than 33% of the maximum number of lost souls, the rest flee
|
||||||
|
@ -2114,14 +2089,15 @@
|
||||||
{VARIABLE ghosts_already_spawned $max_ghosts}
|
{VARIABLE ghosts_already_spawned $max_ghosts}
|
||||||
{VARIABLE ghosts_killed 0}
|
{VARIABLE ghosts_killed 0}
|
||||||
|
|
||||||
[if]
|
[fire_event]
|
||||||
[variable]
|
name=ghosts_leave
|
||||||
name=ghosts_talk
|
[/fire_event]
|
||||||
less_than=2
|
[/else]
|
||||||
[/variable]
|
[/if]
|
||||||
|
[/event]
|
||||||
|
|
||||||
[then]
|
[event]
|
||||||
{VARIABLE ghosts_talk 2}
|
name=ghosts_leave
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Kaleh
|
speaker=Kaleh
|
||||||
|
@ -2132,17 +2108,29 @@
|
||||||
speaker=Garak
|
speaker=Garak
|
||||||
message= _ "These spirits are weak. They seek to prey on the helpless, but when they encounter strong resistance they flee."
|
message= _ "These spirits are weak. They seek to prey on the helpless, but when they encounter strong resistance they flee."
|
||||||
[/message]
|
[/message]
|
||||||
[/then]
|
|
||||||
|
|
||||||
[else]
|
[event]
|
||||||
|
name=ghosts_talk
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=Kaleh
|
||||||
|
message= _ "You come and rise again, spirits? Have we not defeated you before?"
|
||||||
|
[/message]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=Zhul
|
||||||
|
message= _ "These lost souls cannot hold onto anything but memories of lives long gone. They will rise to plague us again, night after night."
|
||||||
|
[/message]
|
||||||
|
[/event]
|
||||||
|
|
||||||
|
[event]
|
||||||
|
name=ghosts_leave
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Kaleh
|
speaker=Kaleh
|
||||||
message= _ "Flee, you craven spirits, and leave us in peace!"
|
message= _ "Flee, you craven spirits, and leave us in peace!"
|
||||||
[/message]
|
[/message]
|
||||||
[/else]
|
[/event]
|
||||||
[/if]
|
|
||||||
[/else]
|
|
||||||
[/if]
|
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||||
|
|
Loading…
Add table
Reference in a new issue