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,46 +2026,10 @@
|
|||
[/while]
|
||||
{CLEAR_VARIABLE spawn}
|
||||
# some ghosts dialogue
|
||||
[if]
|
||||
[variable]
|
||||
name=ghosts_talk
|
||||
less_than=1
|
||||
[/variable]
|
||||
[then]
|
||||
{VARIABLE ghosts_talk 1}
|
||||
|
||||
[message]
|
||||
speaker=Garak
|
||||
message= _ "The sands are haunted with the spirits of tortured souls long since dead. At dusk they rise again, and during the Long Dark they can be particularly nasty. They disappear again at dawn, but personally I prefer the heat of the day to the horrors of the night."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
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]
|
||||
[fire_event]
|
||||
name=ghosts_talk
|
||||
[/fire_event]
|
||||
[/then]
|
||||
[/if]
|
||||
[/then]
|
||||
|
@ -2076,6 +2037,20 @@
|
|||
{CLEAR_VARIABLE turn_temp}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=ghosts_talk
|
||||
|
||||
[message]
|
||||
speaker=Garak
|
||||
message= _ "The sands are haunted with the spirits of tortured souls long since dead. At dusk they rise again, and during the Long Dark they can be particularly nasty. They disappear again at dawn, but personally I prefer the heat of the day to the horrors of the night."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Zhul
|
||||
message= _ "The combination of the heat of the day and the rising undead make dusk a particularly dangerous time of day."
|
||||
[/message]
|
||||
[/event]
|
||||
|
||||
# If player kills more than 33% of the maximum number of lost souls, the rest flee
|
||||
|
||||
[event]
|
||||
|
@ -2114,37 +2089,50 @@
|
|||
{VARIABLE ghosts_already_spawned $max_ghosts}
|
||||
{VARIABLE ghosts_killed 0}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=ghosts_talk
|
||||
less_than=2
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{VARIABLE ghosts_talk 2}
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
message= _ "What happened? The undead spirits all just disappeared."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
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]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
message= _ "Flee, you craven spirits, and leave us in peace!"
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[fire_event]
|
||||
name=ghosts_leave
|
||||
[/fire_event]
|
||||
[/else]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=ghosts_leave
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
message= _ "What happened? The undead spirits all just disappeared."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Garak
|
||||
message= _ "These spirits are weak. They seek to prey on the helpless, but when they encounter strong resistance they flee."
|
||||
[/message]
|
||||
|
||||
[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]
|
||||
[/event]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
Loading…
Add table
Reference in a new issue