Fixed bug #12922 in EI; i.e. make scenario Northern Outpost work correctly
This commit is contained in:
parent
eb43d5b3ca
commit
f3413b3888
1 changed files with 40 additions and 41 deletions
|
@ -218,6 +218,45 @@ y=$y1
|
|||
speaker=unit
|
||||
message= _ "They're here!"
|
||||
[/message]
|
||||
#decides if the badguy leader appears
|
||||
#badguy leader has less chance of appearing early on. (as in 0% chance for first 5 villages. :P)
|
||||
{RANDOM 4..10}
|
||||
[if]
|
||||
[or]
|
||||
[variable]
|
||||
name=random
|
||||
greater_than_equal_to=$trapdiff
|
||||
[/variable]
|
||||
[/or]
|
||||
[or]
|
||||
[variable]
|
||||
name=shodranoshown
|
||||
equals=yes
|
||||
[/variable]
|
||||
[/or]
|
||||
[else]
|
||||
[unit]
|
||||
type=Assassin
|
||||
side=4
|
||||
x=$x1
|
||||
y=$y1
|
||||
description=Shodrano
|
||||
user_description= _ "Shodrano"
|
||||
[/unit]
|
||||
[set_variable]
|
||||
name=shodranoshown
|
||||
value=yes
|
||||
[/set_variable]
|
||||
[message]
|
||||
description=Shodrano
|
||||
message= _ "So, you have found my hiding place. Very well, I guess I will have to kill you!"
|
||||
[/message]
|
||||
[message]
|
||||
description=Owaec
|
||||
message= _ "That's the bandit leader! Kill him, and we will have fulfilled our duty!"
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[/then]
|
||||
[else]
|
||||
[message]
|
||||
|
@ -230,46 +269,6 @@ y=$y1
|
|||
name=trapdiff
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
#decides if the badguy leader appears
|
||||
#badguy leader has less chance of appearing early on. (as in 0% chance for first 5 villages. :P)
|
||||
{RANDOM 4..10}
|
||||
[if]
|
||||
[or]
|
||||
[variable]
|
||||
name=random
|
||||
greater_than_equal_to=$trapdiff
|
||||
[/variable]
|
||||
[/or]
|
||||
[or]
|
||||
[variable]
|
||||
name=shodranoshown
|
||||
equals=yes
|
||||
[/variable]
|
||||
[/or]
|
||||
[else]
|
||||
[unit]
|
||||
type=Assassin
|
||||
side=4
|
||||
x=$x1
|
||||
y=$y1
|
||||
description=Shodrano
|
||||
user_description= _ "Shodrano"
|
||||
[/unit]
|
||||
[set_variable]
|
||||
name=shodranoshown
|
||||
value=yes
|
||||
[/set_variable]
|
||||
[message]
|
||||
description=Shodrano
|
||||
message= _ "So, you have found my hiding place. Very well, I guess I will have to kill you!"
|
||||
[/message]
|
||||
[message]
|
||||
description=Owaec
|
||||
message= _ "That's the bandit leader! Kill him, and we will have fulfilled our duty!"
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
@ -283,7 +282,7 @@ y=$y1
|
|||
[/message]
|
||||
[if]
|
||||
[have_unit]
|
||||
name=Lanar-Skal
|
||||
description=Lanar-Skal
|
||||
[/have_unit]
|
||||
[then]
|
||||
[message]
|
||||
|
|
Loading…
Add table
Reference in a new issue