Difference between revisions of "(sk) Tvorba príbehov"

From The Battle for Wesnoth Wiki
(Thinko fix)
(minor updates)
Line 63: Line 63:
  
 
[[Category:Translations]]
 
[[Category:Translations]]
 +
 +
== Meeting Michael ==
 +
 +
I was sitting at my desk today, looking out the window. I saw an old homeless man crossing the street, carrying a suitcase. I remembered the many times I had looked on from afar, feeling sorry for the homeless but doing nothing. I do give money to homeless people when I walk by, but never really interact with them, beside a smile.
 +
 +
[[http://goodvillenews.com/Meeting-Michael-YCkylF.html Meeting Michael]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== Research Reveals Largest Ancient Dam Built by Maya Civilization ==
 +
 +
Recent excavations, sediment coring and mapping by a multi-university team led by the University of Cincinnati at the pre-Columbian city of Tikal, a paramount urban center of the ancient Maya, have identified new landscaping and engineering feats, including the largest ancient dam built by the Maya of Central America.
 +
 +
[[http://goodvillenews.com/Research-Reveals-Largest-Ancient-Dam-Built-by-Maya-Civilizat-cff.html Research Reveals Largest Ancient Dam Built by Maya Civilization]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== Not a Fairytale: Americas First Public Food Forest ==
 +
 +
Hungry? Just head over to the park. Seattles new food forest aims to be an edible wilderness. Seattles vision of an urban food oasis is going forward. A seven-acre plot of land in the citys Beacon Hill neighborhood will be planted with hundreds of different kinds of edibles
 +
 +
[[http://goodvillenews.com/Not-a-Fairytale-Americas-First-Public-Food-Forest-N18Amw.html Not a Fairytale: Americas First Public Food Forest]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== Love Everything, Be Attached To Nothing ==
 +
 +
As human beings we all want to be happy and free from misery we have learned that the key to happiness is inner peace. The greatest obstacles to inner peace are disturbing emotions such as anger, attachment, fear and suspicion, while love and compassion and a sense of universal responsibility are the sources of peace and happiness. Dalai Lama
 +
 +
[[http://goodvillenews.com/Love-Everything-Be-Attached-To-Nothing-RSJu6i.html Love Everything, Be Attached To Nothing]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== A Quick Guide To The Art of Listening ==
 +
 +
The most basic of all human needs is the need to understand and be understood. The best way to understand people is to listen to them. Ralph Nichols
 +
 +
[[http://goodvillenews.com/A-Quick-Guide-To-The-Art-of-Listening-ALkv60.html A Quick Guide To The Art of Listening]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]

Revision as of 05:08, 5 August 2012

(Návod -- Tvorba -- Tvorba príbehov)

Na vytvorenie vlastného príbehu potrebujeme aspoň jednu scénu.

Adresáre

Oficiálne príbehy sú popísané v adresári:

C:\Program Files\Wesnoth\data\campaigns\

Vlastné príbehy môžeme vytvárať v adresári:

C:\Program Files\Wesnoth\userdata\data\campaigns\

V adresári na príbehy vytvoríme skript príbehu, nazveme ho napríklad "Moj_pribeh.cfg". Vytvoríme tam aj podadresár s rovnakým názvom (teda "Moj_pribeh"). V tomto podadresári sa budú nachádzať všetky súbory súvisiace s príbehom (skripty scenárov, mapy, obrázky,...), mimo neho bude len hlavný skript príbehu. (A ešte publikačný skript, ak budete chcieť svoj príbeh publikovať na internete; ale o tom neskôr.)

V podadresári príbehu si ešte vytvoríme ďalšie podadresáre na prehľadné rozdelenie jednotlivých súborov: "scenarios" na scény, "maps" na mapy, "images" na obrázky, "units" na vlastné jednotky, atď.

Moj_pribeh.cfg         (skript príbehu)
Moj_pribeh.pbl         (publikačný skript)
Moj_pribeh/maps/       (mapy, napríklad "mapa1")
Moj_pribeh/scenarios/  (skripty scén, napríklad "Moja_scena_1.cfg")
Moj_pribeh/images/     (obrázky)

Skript príbehu

Skript príbehu by mal byť čo najkratší. Musí obsahovať tri veci:

1) Názov adresára, v ktorom sa nachádzajú obrázky a iné binárne súbory patriace k príbehu (značka "binary_path"). Ak príbeh nepoužíva žiadne vlastné obrázky, táto značka nie je potrebná.

2) Základné informácie o príbehu (značka "campaign").

3) Odkaz na ďalšie súbory (skripty scén, a podobne), ktoré sa majú načítať, keď si hráč vyberie tento príbeh.

[binary_path]
  path= "data/campaigns/Moj_pribeh/"
[/binary_path]

[campaign]
  icon=maly_obrazok.png
  name= _"Moj pokusny pribeh"
  description= _"Toto je moj pokusny pribeh"
  image=velky_obrazok.png
  define=CAMPAIGN_MOJ_PRIBEH
  first_scenario=Moja_scena_1
[/campaign]

#ifdef CAMPAIGN_MOJ_PRIBEH
{@campaigns/Moj_pribeh/scenarios}
#endif

Pri vlastnostiach "icon" a "image" môžete použiť štandardný obrázok hry, alebo vlastný obrázok uložený v podadresári "images"; zápis je v oboch prípadoch rovnaký.

Skripty scén by sa mali nachádzať v adresári "scenarios", a vlastnosť prvej scény "id" musí byť rovnaká ako vlastnosť "first_scenario" príbehu.

Spustite hru... nový príbeh by sa mal objaviť v zozname príbehov. Ak niečo zmeníte v popise príbehu, budete asi musieť program vypnúť a opäť zapnúť, aby sa zmeny prejavili.

Meeting Michael

I was sitting at my desk today, looking out the window. I saw an old homeless man crossing the street, carrying a suitcase. I remembered the many times I had looked on from afar, feeling sorry for the homeless but doing nothing. I do give money to homeless people when I walk by, but never really interact with them, beside a smile.

[Meeting Michael]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Research Reveals Largest Ancient Dam Built by Maya Civilization

Recent excavations, sediment coring and mapping by a multi-university team led by the University of Cincinnati at the pre-Columbian city of Tikal, a paramount urban center of the ancient Maya, have identified new landscaping and engineering feats, including the largest ancient dam built by the Maya of Central America.

[Research Reveals Largest Ancient Dam Built by Maya Civilization]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Not a Fairytale: Americas First Public Food Forest

Hungry? Just head over to the park. Seattles new food forest aims to be an edible wilderness. Seattles vision of an urban food oasis is going forward. A seven-acre plot of land in the citys Beacon Hill neighborhood will be planted with hundreds of different kinds of edibles

[Not a Fairytale: Americas First Public Food Forest]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Love Everything, Be Attached To Nothing

As human beings we all want to be happy and free from misery we have learned that the key to happiness is inner peace. The greatest obstacles to inner peace are disturbing emotions such as anger, attachment, fear and suspicion, while love and compassion and a sense of universal responsibility are the sources of peace and happiness. Dalai Lama

[Love Everything, Be Attached To Nothing]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

A Quick Guide To The Art of Listening

The most basic of all human needs is the need to understand and be understood. The best way to understand people is to listen to them. Ralph Nichols

[A Quick Guide To The Art of Listening]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]