mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 16:05:06 +00:00
Fix the tutorial's "8 XP away from leveling" speech's trigger.
This commit is contained in:
parent
658133be51
commit
9d8b890c59
@ -127,25 +127,83 @@
|
|||||||
[/if]
|
[/if]
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define IMPORTANT_UNIT NAME
|
#define CHECK_INTELLIGENT NAME
|
||||||
[if]
|
[if]
|
||||||
# FIXME: Archer needs 44/35(intelligent), Fighter needs 38/30 (?)
|
[variable]
|
||||||
|
# Ignoring single-trait units, as we don't have those during the tutorial
|
||||||
|
name={NAME}.modifications.trait.length
|
||||||
|
equals=2
|
||||||
|
[/variable]
|
||||||
|
[then]
|
||||||
|
[if]
|
||||||
|
[variable]
|
||||||
|
name={NAME}.modifications.trait[0].id
|
||||||
|
equals=intelligent
|
||||||
|
[/variable]
|
||||||
|
[or]
|
||||||
|
[variable]
|
||||||
|
name={NAME}.modifications.trait[1].id
|
||||||
|
equals=intelligent
|
||||||
|
[/variable]
|
||||||
|
[/or]
|
||||||
|
[then]
|
||||||
|
{VARIABLE is_intelligent yes}
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
{VARIABLE is_intelligent no}
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
{VARIABLE is_intelligent no}
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
#enddef
|
||||||
|
|
||||||
|
#define IMPORTANT_UNIT NAME
|
||||||
|
{CHECK_INTELLIGENT {NAME}}
|
||||||
|
[if]
|
||||||
|
# Archer needs 44/35(intelligent), Fighter needs 40/32
|
||||||
[variable]
|
[variable]
|
||||||
name={NAME}.type
|
name={NAME}.type
|
||||||
equals=Elvish Archer
|
equals=Elvish Archer
|
||||||
[/variable]
|
[/variable]
|
||||||
|
{BOOLEQ is_intelligent no}
|
||||||
[variable]
|
[variable]
|
||||||
name={NAME}.experience
|
name={NAME}.experience
|
||||||
greater_than=30
|
greater_than=35
|
||||||
[/variable]
|
[/variable]
|
||||||
|
[or]
|
||||||
|
[variable]
|
||||||
|
name={NAME}.type
|
||||||
|
equals=Elvish Archer
|
||||||
|
[/variable]
|
||||||
|
{BOOLEQ is_intelligent yes}
|
||||||
|
[variable]
|
||||||
|
name={NAME}.experience
|
||||||
|
greater_than=26
|
||||||
|
[/variable]
|
||||||
|
[/or]
|
||||||
[or]
|
[or]
|
||||||
[variable]
|
[variable]
|
||||||
name={NAME}.type
|
name={NAME}.type
|
||||||
equals=Elvish Fighter
|
equals=Elvish Fighter
|
||||||
[/variable]
|
[/variable]
|
||||||
|
{BOOLEQ is_intelligent no}
|
||||||
[variable]
|
[variable]
|
||||||
name={NAME}.experience
|
name={NAME}.experience
|
||||||
greater_than=29
|
greater_than=31
|
||||||
|
[/variable]
|
||||||
|
[/or]
|
||||||
|
[or]
|
||||||
|
[variable]
|
||||||
|
name={NAME}.type
|
||||||
|
equals=Elvish Fighter
|
||||||
|
[/variable]
|
||||||
|
{BOOLEQ is_intelligent yes}
|
||||||
|
[variable]
|
||||||
|
name={NAME}.experience
|
||||||
|
greater_than=23
|
||||||
[/variable]
|
[/variable]
|
||||||
[/or]
|
[/or]
|
||||||
[then]
|
[then]
|
||||||
@ -179,6 +237,7 @@
|
|||||||
{CLEAR_VARIABLE commented}
|
{CLEAR_VARIABLE commented}
|
||||||
[/then]
|
[/then]
|
||||||
[/if]
|
[/if]
|
||||||
|
{CLEAR_VARIABLE is_intelligent}
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define DEFENDER_INJURED NAME
|
#define DEFENDER_INJURED NAME
|
||||||
|
@ -89,6 +89,13 @@
|
|||||||
[/variable]
|
[/variable]
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
|
#define BOOLEQ VAR VALUE
|
||||||
|
[variable]
|
||||||
|
name={VAR}
|
||||||
|
boolean_equals={VALUE}
|
||||||
|
[/variable]
|
||||||
|
#enddef
|
||||||
|
|
||||||
#define GENDER MALE_WML FEMALE_WML
|
#define GENDER MALE_WML FEMALE_WML
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[variable]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user