Kod: Zaznacz cały
[textdomain]
name="wesnoth-dzieje_cassady"
path="data/campaigns/dzieje-cassady/translations"
[/textdomain]
#textdomain wesnoth-dzieje_cassady
# wmlscope: set export=no
[campaign]
name=_ "Dzieje Cassady"
abbrev=DC
define=DZIEJE_CASSADY
icon="items/sylph-melee.png"
image="items/shaman.png"
rank= "1000"
description= _ "***"
difficulties=EASY,NORMAL,HARD
difficulty_descriptions={MENU_IMG_TXT2 "items/shaman-attack2.png~RC(magenta>red)" _"Szamanka" _"(Easy)"} + ";" + {MENU_IMG_TXT2 "items/sorceress-magic-3.png~RC(magenta>red)" _"Czarodziejka" _"(Normal)"} + ";" + {MENU_IMG_TXT2 "items/enchantress-magic-2.png~RC(magenta>red)" _"Syfintia" _"(Difficult)"}
first_scenario="1_Defend"
[about]
title = _ "Campaign Design"
[entry]
name = "(Moses)"
[/entry]
[/about]
[/campaign]
#ifdef DZIEJE_CASSADY
[binary_path]
path=data/campaigns/dzieje_cassady/
[/binary_path]
{~campaigns/dzieje_cassady/scenarios}
{~campaigns/dzieje_cassady/images}
{~campaigns/dzieje_cassady/utils}
[+units]
{~campaigns/dzieje_cassady/units}
[/units]
#endif
Kod: Zaznacz cały
#textdomain wesnoth-dzieje_cassady
[scenario]
id=1_Defend
name= _ "1_Defend"
map_data="{~campaigns/dzieje_cassady/maps/1-Defend.map}"
victory_when_enemies_defeated=no
experience_modifier=100
turns=20
next_scenario=2_poscig
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
{DAWN}
{INTRO_AND_SCENARIO_MUSIC elvish-theme.ogg knolls.ogg}
{EXTRA_SCENARIO_MUSIC wanderer.ogg}
{EXTRA_SCENARIO_MUSIC sad.ogg}
[story]
[part]
story= _ "***"
[/part]
[part]
story=_ "***"
[/part]
[/story]
[event]
name=prestart
[objectives]
side=0
silent=no
[objective]
description=_ "Pokonaj goblińskich zwiadowców"
condition=win
[/objective]
[objective]
description=_ "Śmierć Cassady"
condition=lose
[/objective]
[objective]
description=_ "Śmierć Thatrot'a"
condition=lose
[/objective]
[objective]
description=_ "Śmierć Sonny"
condition=lose
[/objective]
[objective]
description=_ "Koniec tur"
condition=lose
[/objective]
note={EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]
[side]
side=1
no_leader=yes
save_id=Cassady
controller=human
team_name=Elves
recruit="Elvish Shaman, Elvish Archer"
{GOLD 200 150 100}
#wmllint: validate-off
[unit]
{CASSADY}
# wmllint: recognize Cassady
x=26
y=22
[/unit]
[unit]
{THATROT}
# wmllint: recognize Thatrot
x,y=26,21
[/unit]
[unit]
{SONNY}
# wmllint: recognize Sonny
x,y=25,21
[/unit]
#wmllint: validate-on
[/side]
[side]
side=2
controller=ai
team_name="orcs"
user_team_name=_ "Attack"
type="Goblin Knight"
id=Neresh
name=_ "Neresh"
profile=portraits/warlord4.png
unrenamable=yes
canrecruit=yes
recruit="Wolf Rider, Goblin Pillager, Goblin Knight"
fog=no
{GOLD 250 350 500}
[ai]
recruitment_pattern=fighter
aggression=2
caution=0.05
village_value=0.05
leader_value=4.25
[/ai]
[/side]
[event]
name=start
[message]
id=Neresh
message= _ "***"
[/message]
[message]
id=Thatrot
message= _ "***"
[/message]
[scroll_to_unit]
id=Neresh
[/scroll_to_unit]
[message]
id=Sonny
message= _ "***"
[/message]
[message]
id=Cassady
message= _ "***"
[/message]
[message]
id=Sonny
message= _ "***"
[/message]
[message]
id=Thatrot
message= _ "***"
[/message]
[message]
id=Cassady
message= _ "***"
[/message]
[message]
id=Neresh
message= _ "***"
[/message]
[message]
id=Thatrot
message= _ "***"
[/message]
[message]
id=Sonny
message= _ "***"
[/message]
[message]
id=Cassady
message= _ "***"
[/message]
[/event]
[event]
name=die
[filter]
type=Wolf Rider, Goblin Pillager, Goblin Knight
[/filter]
[filter_second]
id=Thatrot
[/filter_second]
[message]
speaker=Thatrot
message= _ "Jednego mniej!"
[/message]
[/event]
[event]
name=die
[filter]
id=Thatrot
[/filter]
[message]
speaker=Thatrot
message= _ "Uhhh..."
[/message]
[message]
speaker=Cassady
message= _ "Thatrot..."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=die
[filter]
id=Sonny
[/filter]
[message]
speaker=Sonny
message= _ "Nie...jeszcze nie nadszedł mój czas... uh..."
[/message]
[message]
speaker=Thatrot
message= _ "Ukochana..."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=die
[filter]
id=Cassady
[/filter]
[message]
speaker=Cassady
message= _ "Aaaahhh!"
[/message]
[message]
speaker=Thatrot
message= _ "Nie! Siostro!"
[/message]
[message]
speaker=Sonny
message= _ "Pani!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=die
[filter]
id=Neresh
[/filter]
[message]
speaker=Neresh
message= _ "Przeklęte drzewoluby..."
[/message]
[message]
speaker=Thatrot
message= _ "To był tylko zwiad, musimy dopaść tego kto ich wysłał, nikt nie może wiedzieć o tym miejscu, zwłaszcza orkowie!"
[/message]
[endlevel]
result=continue
[/endlevel]
[/event]
[/scenario]
Kod: Zaznacz cały
#textdomain wesnoth-dzieje_cassady
#define CASSADY
id=Cassady
name= _"Cassady"
save_id=Cassady
unrenamable=yes
type="Elvish Shaman"
side=1
canrecruit=yes
[modifications]
{TRAIT_STRONG}
{TRAIT_INTELIGENT}
{TRAIT_LOYAL}
[/modifications]
controller=human
team_name=Elves
#enddef
#define RECALL_CASSADY X Y
[event]
name=prestart
[recall]
id=Cassady
x={X}
y={Y}
[/recall]
[/event]
#enddef
#define THATROT
id=Thatrot
save_id=Thatrot
name= _"Thatrot"
unrenamable=yes
type="Elvish Archer"
[modifications]
{TRAIT_STRONG}
{TRAIT_INTELIGENT}
{TRAIT_LOYAL}
[/modifications]
team_name=Elves
side=1
{IS_HERO}
#enddef
#define SONNY
id=Sonny
save_id=Sonny
name= _"Sonny"
unrenamable=yes
type="Elvish Shaman"
[modifications]
{TRAIT_STRONG}
{TRAIT_INTELIGENT}
{TRAIT_LOYAL}
[/modifications]
team_name=Elves
side=1
{IS_HERO}
#enddef
EDIT:
zapomniałem o konsoli:
Kod: Zaznacz cały
Battle for Wesnoth v1.6.4
Started on Sat Nov 7 16:06:47 2009
Data directory: /usr/share/games/wesnoth
User configuration directory: /home/moses/.wesnoth1.6
Checking video mode: 1021x768x32...
setting mode to 1021x768x32
20091107 16:06:51 error general: no location found for 'data/campaigns/Era_of_Myths/translations', not adding textdomain
20091107 16:06:51 error general: no location found for 'data/campaigns/Era_of_Strife/translations', not adding textdomain
20091107 16:06:51 error general: no location found for 'data/campaigns/dzieje-cassady/translations', not adding textdomain
20091107 16:06:53 error display: could not open image 'items/sylph-melee.png'
20091107 16:06:55 error display: could not open image 'items/shaman.png'
20091107 16:06:55 error display: could not open image 'items/shaman-attack2.png'
20091107 16:06:55 error display: could not open image 'items/sorceress-magic-3.png'
20091107 16:06:55 error display: could not open image 'items/enchantress-magic-2.png'
20091107 16:07:00 error config: File not found 'CASSADY'
20091107 16:07:00 error config: File not found 'THATROT'
20091107 16:07:00 error config: File not found 'SONNY'
20091107 16:07:00 error config: File not found 'CASSADY'
20091107 16:07:00 error config: File not found 'THATROT'
20091107 16:07:00 error config: File not found 'SONNY'
20091107 16:07:00 error config: Error: invalid string:
20091107 16:07:01 error general: Gra nie może zostać wczytana:load_game_failed: Attempt to de-serialize a unit with no 'type' field (probably empty)
próbowałem użyć takiego wpisu al coś nie bardzo chce działać przynajmniej Lider już jest...
Kod: Zaznacz cały
[event]
name=prestart
{HERO (Elvish Archer) (Thatrot) ( _ "Thatrot") 1 27 22 "portraits/eldaric.png"}
# wmllint: recognize Thatrot
{HERO (Elvish Shaman) (Sonny) ( _ "Sonny") 1 25 23 "portraits/eldaric.png"}
# wmllint: recognize Sonny
[objectives]
side=0
silent=no
[objective]
description=_ "Pokonaj goblińskich zwiadowców"
condition=win
[/objective]
[objective]
description=_ "Śmierć Cassady"
condition=lose
[/objective]
[objective]
description=_ "Śmierć Thatrot'a"
condition=lose
[/objective]
[objective]
description=_ "Śmierć Sonny"
condition=lose
[/objective]
[objective]
description=_ "Koniec tur"
condition=lose
[/objective]
note={EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]
[side]
id=Cassady
name= _ "Cassady"
unrenamable=yes
side=1
type=Elvish Shaman
canrecruit=yes
controller=human
team_name=Elves
user_team_name=_"Elves"
recruit="Elvish Shaman, Elvish Archer"
{GOLD 200 150 100}
[/side]