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]
|
||||
|
||||
# shroud MUST be removed in prestart for the label
|
||||
# info to get updated correctly before the player’s
|
||||
# turn
|
||||
# info to get updated correctly before the player’s turn
|
||||
[remove_shroud]
|
||||
side=1
|
||||
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]
|
||||
|
||||
{VARIABLE ghosts_talk 0}
|
||||
# setup ghost difficulty
|
||||
#ifdef EASY
|
||||
{VARIABLE max_ghosts 6}
|
||||
|
@ -1811,7 +1809,6 @@
|
|||
{CLEAR_VARIABLE ghosts}
|
||||
{CLEAR_VARIABLE ghosts_already_spawned}
|
||||
{CLEAR_VARIABLE ghosts_killed}
|
||||
{CLEAR_VARIABLE ghosts_talk}
|
||||
{CLEAR_VARIABLE hunting_ogres_found}
|
||||
{CLEAR_VARIABLE max_ghosts}
|
||||
{CLEAR_VARIABLE max_per_turn}
|
||||
|
@ -2029,13 +2026,19 @@
|
|||
[/while]
|
||||
{CLEAR_VARIABLE spawn}
|
||||
# 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
|
||||
less_than=1
|
||||
[/variable]
|
||||
[then]
|
||||
{VARIABLE ghosts_talk 1}
|
||||
|
||||
[message]
|
||||
speaker=Garak
|
||||
|
@ -2046,34 +2049,6 @@
|
|||
speaker=Zhul
|
||||
message= _ "The combination of the heat of the day and the rising undead make dusk a particularly dangerous time of day."
|
||||
[/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]
|
||||
|
||||
# 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_killed 0}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=ghosts_talk
|
||||
less_than=2
|
||||
[/variable]
|
||||
[fire_event]
|
||||
name=ghosts_leave
|
||||
[/fire_event]
|
||||
[/else]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
[then]
|
||||
{VARIABLE ghosts_talk 2}
|
||||
[event]
|
||||
name=ghosts_leave
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
|
@ -2132,17 +2108,29 @@
|
|||
speaker=Garak
|
||||
message= _ "These spirits are weak. They seek to prey on the helpless, but when they encounter strong resistance they flee."
|
||||
[/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]
|
||||
speaker=Kaleh
|
||||
message= _ "Flee, you craven spirits, and leave us in peace!"
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[/else]
|
||||
[/if]
|
||||
[/event]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
|
|
Loading…
Add table
Reference in a new issue