HttT S05b Randomize temples
Formerly, to find Moremirmu, simply check (11,13) and, if not there, he is in (10,17). Oh HARD, there was a 1-in-2 chance of finding Xakae in (11,13), instead, and (9,15) was always empty. On NORMAL, Xakae is in (9,15). Now, the odds of finding Moremirmu in a given temple are 1-in-3, as are the odds of finding Xakae unless playing on EASY where he is not present.
This commit is contained in:
parent
c11498ab89
commit
5fcc2c232f
1 changed files with 44 additions and 46 deletions
|
@ -218,9 +218,6 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
# TODO: randomize temples properly, and make Moremirmu appear at the end of
|
||||
# scenario if the player never found him
|
||||
|
||||
#define EMPTY_TEMPLE_TRAP X Y
|
||||
[event]
|
||||
name=moveto
|
||||
|
@ -298,6 +295,9 @@
|
|||
#enddef
|
||||
|
||||
#define XAKAE_TRAP X Y
|
||||
#ifdef EASY
|
||||
{EMPTY_TEMPLE_TRAP {X} {Y}}
|
||||
#else
|
||||
[event]
|
||||
name=moveto
|
||||
[filter]
|
||||
|
@ -335,60 +335,58 @@
|
|||
message= _ "Surprise! Searching for magi, and all I get is these foul humans!"
|
||||
[/message]
|
||||
[/event]
|
||||
#endif
|
||||
#enddef
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
|
||||
#
|
||||
# Determine the contents of the temples:
|
||||
# - on easy, Moremirmu shows up in 1 close temple and the others are empty
|
||||
# - on normal, Moremirmu shows up in 1 close temple and the far one has the revenant
|
||||
# - on hard, Moremirmu and the revenant show up in the 2 close temples (far one is empty)
|
||||
#
|
||||
{RANDOM 1..2}
|
||||
[if]
|
||||
[variable]
|
||||
name=random
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
#ifdef EASY
|
||||
[then]
|
||||
{MOREMIRMU_TRAP 11 13}
|
||||
{EMPTY_TEMPLE_TRAP 10 17}
|
||||
{RANDOM 1..6}
|
||||
[switch]
|
||||
variable=random
|
||||
[case]
|
||||
value=6
|
||||
|
||||
{EMPTY_TEMPLE_TRAP 9 15}
|
||||
[/then]
|
||||
[else]
|
||||
{MOREMIRMU_TRAP 10 17}
|
||||
{EMPTY_TEMPLE_TRAP 11 13}
|
||||
{EMPTY_TEMPLE_TRAP 9 15}
|
||||
[/else]
|
||||
#endif
|
||||
#ifdef NORMAL
|
||||
[then]
|
||||
{MOREMIRMU_TRAP 11 13}
|
||||
{EMPTY_TEMPLE_TRAP 10 17}
|
||||
{XAKAE_TRAP 9 15}
|
||||
[/then]
|
||||
[else]
|
||||
{MOREMIRMU_TRAP 10 17}
|
||||
{EMPTY_TEMPLE_TRAP 11 13}
|
||||
{XAKAE_TRAP 9 15}
|
||||
[/else]
|
||||
#endif
|
||||
#ifdef HARD
|
||||
[then]
|
||||
{MOREMIRMU_TRAP 11 13}
|
||||
{XAKAE_TRAP 10 17}
|
||||
{MOREMIRMU_TRAP 11 13}
|
||||
[/case]
|
||||
[case]
|
||||
value=5
|
||||
|
||||
{XAKAE_TRAP 9 15}
|
||||
{EMPTY_TEMPLE_TRAP 10 17}
|
||||
{MOREMIRMU_TRAP 11 13}
|
||||
[/case]
|
||||
[case]
|
||||
value=4
|
||||
|
||||
{EMPTY_TEMPLE_TRAP 9 15}
|
||||
[/then]
|
||||
[else]
|
||||
{MOREMIRMU_TRAP 10 17}
|
||||
{XAKAE_TRAP 11 13}
|
||||
{EMPTY_TEMPLE_TRAP 9 15}
|
||||
[/case]
|
||||
[case]
|
||||
value=3
|
||||
|
||||
{XAKAE_TRAP 9 15}
|
||||
{MOREMIRMU_TRAP 10 17}
|
||||
{EMPTY_TEMPLE_TRAP 11 13}
|
||||
[/case]
|
||||
[case]
|
||||
value=2
|
||||
|
||||
{MOREMIRMU_TRAP 9 15}
|
||||
{EMPTY_TEMPLE_TRAP 10 17}
|
||||
{XAKAE_TRAP 11 13}
|
||||
[/case]
|
||||
[else]
|
||||
# value=1 and "can't happen, but just in case" case
|
||||
|
||||
{MOREMIRMU_TRAP 9 15}
|
||||
{XAKAE_TRAP 10 17}
|
||||
{EMPTY_TEMPLE_TRAP 11 13}
|
||||
[/else]
|
||||
#endif
|
||||
[/if]
|
||||
[/switch]
|
||||
{CLEAR_VARIABLE random}
|
||||
[/event]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue