mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 20:57:48 +00:00

- The t_string type is now a schema built-in type and no longer attempts a regex match. - You can also specify that non-t_string types may be optionally-translatable; this case supports a regex match on the string (but note that the translation mark is not part of the match). - Error messages involving keys with very large values ( > 128 characters) will now truncate the value. - To account for occasional cases where the schema is intentionally violated, the --validate command-line option now automatically defines the SCHEMA_VALIDATION preprocessor define. A key validates as type t_string if one of the following is true: - The key is not present - The key has at least one segment with a translation mark - The key is blank (an empty string) Any type other than t_string is not allowed to be translatable by default, unless you specify allow_translatable=yes in the [type] tag. An optionally-translatable string could also be defined as a union of t_string and some other type.
268 lines
5.5 KiB
INI
268 lines
5.5 KiB
INI
#textdomain wesnoth-test
|
|
# @file data/scenario-test.cfg
|
|
|
|
[test]
|
|
name=_"Test scenario"
|
|
|
|
victory_when_enemies_defeated=no
|
|
|
|
map_data="
|
|
Gg, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu
|
|
Gg, Gg, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu
|
|
Uu, Gg, 1 Gg, Gg^Vht, Gg, Gg^Vht, Gg, Gg^Vht, Gg, Gg^Vht, Gs^Vc, Gg, Gg
|
|
Wo, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Gg, Ww
|
|
Uu, Wo, Wo, Wo, Wo, Wo, Wo, Wo, Wo, Wo, Wo, Ww, Uu
|
|
Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu
|
|
Uu, Uu, Uu, Uu, Uu, Uu, Gg, Uu, Uu, Uu, Uu, Uu, Uu
|
|
Uu, Uu, Uu, Uu, Uu, Gg, 2 Gg, Gg, Uu, Uu, Uu, Uu, Uu
|
|
Uu, Uu, Uu, Uu, Uu, Gg, Gg, Gg, Uu, Uu, Uu, Uu, Uu
|
|
Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu"
|
|
|
|
turns=unlimited
|
|
id=movethrough
|
|
{DEFAULT_SCHEDULE}
|
|
|
|
[side]
|
|
side=1
|
|
controller=human
|
|
suppress_end_turn_confirmation=yes
|
|
fog=yes
|
|
shroud=yes
|
|
team_name=us
|
|
|
|
type=Gryphon Rider
|
|
canrecruit=yes
|
|
|
|
# No traits to have more determinancy in these test cases.
|
|
{NOTRAIT_UNIT 1 "Dwarvish Guardsman" 4 2}
|
|
{NOTRAIT_UNIT 1 "Dwarvish Fighter" 6 2}
|
|
{NOTRAIT_UNIT 1 "Dwarvish Scout" 8 2}
|
|
{NOTRAIT_UNIT 1 "Gryphon Rider" 11 3}
|
|
[/side]
|
|
|
|
[side]
|
|
side=2
|
|
controller=ai
|
|
team_name=us
|
|
|
|
type=Spectre
|
|
canrecruit=yes
|
|
[/side]
|
|
|
|
[side]
|
|
side=3
|
|
controller=ai
|
|
team_name=them
|
|
no_leader=yes
|
|
[unit]
|
|
type=Peasant
|
|
x,y=10,1
|
|
[abilities]
|
|
[hides]
|
|
id=invisible
|
|
name=_"invisible"
|
|
female_name=_"female^invisible"
|
|
name_inactive=_"invisible"
|
|
female_name_inactive=_"female^invisible"
|
|
affect_self=yes
|
|
[/hides]
|
|
[/abilities]
|
|
[/unit]
|
|
[/side]
|
|
|
|
[event]
|
|
name=prestart
|
|
|
|
{PLACE_IMAGE "items/gohere.png" 10 2}
|
|
[/event]
|
|
|
|
# Test of enter hex event.
|
|
[event]
|
|
name=enter hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
x,y=8,2
|
|
[/filter]
|
|
|
|
[message]
|
|
speaker=unit
|
|
message=_"I triggered an enter hex event."
|
|
[/message]
|
|
|
|
[allow_undo]
|
|
[/allow_undo]
|
|
[/event]
|
|
|
|
# Test of exit hex event.
|
|
[event]
|
|
name=exit hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
x,y=8,2
|
|
[/filter]
|
|
|
|
[message]
|
|
speaker=unit
|
|
message=_"I triggered an exit hex event."
|
|
[/message]
|
|
|
|
[allow_undo]
|
|
[/allow_undo]
|
|
[/event]
|
|
|
|
# Test of landing on occupied tiles.
|
|
[event]
|
|
name=exit hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
race=dwarf
|
|
[/filter]
|
|
[filter_second]
|
|
race=dwarf
|
|
[/filter_second]
|
|
|
|
[message]
|
|
speaker=unit
|
|
message=_"Get out of the way, $second_unit.name|!"
|
|
[/message]
|
|
|
|
[allow_undo]
|
|
[/allow_undo]
|
|
[event]
|
|
name=enter hex
|
|
[/event]
|
|
[/event]
|
|
|
|
# Changing terrain in an enter hex event
|
|
[event]
|
|
name=enter hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
[filter_location]
|
|
x,y=5,5
|
|
radius=1
|
|
[/filter_location]
|
|
[/filter]
|
|
|
|
[terrain]
|
|
x,y=5,5
|
|
terrain=Ww
|
|
[/terrain]
|
|
[/event]
|
|
|
|
# Leaving a trail of changed terrain
|
|
[event]
|
|
name=enter hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
canrecruit=yes
|
|
[/filter]
|
|
|
|
[allow_undo]
|
|
[/allow_undo]
|
|
[event]
|
|
name=moveto
|
|
[/event]
|
|
|
|
[terrain]
|
|
x,y=$x2,$y2
|
|
terrain=Qxu
|
|
[/terrain]
|
|
[message]
|
|
movement_cost={UNREACHABLE}
|
|
message=_"The ground has collapsed beneath me!"
|
|
[/message]
|
|
[kill]
|
|
movement_cost={UNREACHABLE}
|
|
fire_event=yes
|
|
[/kill]
|
|
[/event]
|
|
|
|
# Causing the death of a unit should interrupt movement
|
|
[event]
|
|
name=die
|
|
first_time_only=no
|
|
[/event]
|
|
|
|
# Relocating the unit in an enter hex event
|
|
[event]
|
|
name=enter hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
x,y=6,4
|
|
[/filter]
|
|
|
|
[teleport]
|
|
[filter]
|
|
x,y=6,4
|
|
[/filter]
|
|
x,y=6,5
|
|
[/teleport]
|
|
[/event]
|
|
|
|
# Obstructive movefrom
|
|
[event]
|
|
name=exit hex
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
x,y=6,5
|
|
[/filter]
|
|
|
|
[terrain]
|
|
x,y=6,5
|
|
radius=1
|
|
terrain=Xu
|
|
[/terrain]
|
|
[allow_undo]
|
|
[/allow_undo]
|
|
[/event]
|
|
|
|
# Moveto test
|
|
[event]
|
|
name=moveto
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
x=6
|
|
y=1-4
|
|
[/filter]
|
|
|
|
[message]
|
|
speaker=unit
|
|
message=_"I triggered a moveto event."
|
|
[/message]
|
|
[/event]
|
|
|
|
# Test of sighted event.
|
|
[event]
|
|
name=sighted
|
|
first_time_only=no
|
|
|
|
[filter]
|
|
side=2
|
|
[/filter]
|
|
|
|
[message]
|
|
speaker=second_unit
|
|
message=_"I spy, with my little eye, something that starts with 'f'.
|
|
|
|
" + {ASIDE (_"This is the first part of a sighted event.")}
|
|
[/message]
|
|
[message]
|
|
speaker=unit
|
|
message=_"Um, ""friend""? (Hopefully not ""foe""....)
|
|
|
|
" + {ASIDE (_"This is the second part of a sighted event.")}
|
|
[/message]
|
|
[allow_undo]
|
|
[/allow_undo]
|
|
[/event]
|
|
[/test]
|