tutorials updated

This commit is contained in:
p.kosyh 2010-11-05 08:49:20 +00:00
parent 6664ff60e6
commit 10b7ed0e1f
4 changed files with 65 additions and 59 deletions

2
debian/changelog vendored
View file

@ -15,7 +15,7 @@ instead (1.3.0) unstable; urgency=low
* prefs:purge now removes vars; * prefs:purge now removes vars;
* dialog:empty added; * dialog:empty added;
* txttab; * txttab;
* russian tutorial update; * tutorial update;
-- Peter Kosyh <p.kosyh@gmail.com> Tue, 12 Oct 2010 22:42:00 +0300 -- Peter Kosyh <p.kosyh@gmail.com> Tue, 12 Oct 2010 22:42:00 +0300

View file

@ -1,11 +1,10 @@
-- $Name:English Tutorial$ -- $Name:English Tutorial$
game.codepage="UTF-8"; instead_version "1.3.0"
game.act = 'You can\'t.'; game.act = 'You can\'t.';
game.inv = "Hmm... Wrong..."; game.inv = "Hmm... Wrong...";
game.use = 'Won\'t work...'; game.use = 'Won\'t work...';
game.dsc = [[Commands:^
look(or just Enter), act <on what> (or just on what), use <what> [on what], go <where>,
back, inv, way, obj, quit, save <fname>, load <fname>. Tab to autocomplete.^^]];
game.pic = '../tutorial2/instead.png'; game.pic = '../tutorial2/instead.png';
set_music('../tutorial2/ramparts.mod'); set_music('../tutorial2/ramparts.mod');
@ -13,14 +12,14 @@ set_music('../tutorial2/ramparts.mod');
main = room { main = room {
nam = 'Tutorial', nam = 'Tutorial',
act = function() act = function()
return goto('r1'); goto('r1');
end, end,
dsc = txtc("Welcome to INSTEAD tutorial mode.")..[[^^ dsc = txtc("Welcome to INSTEAD tutorial mode.")..[[^^
The game consists of scenes. Each game scene has a description, consisting of static and dynamic parts. Dynamic part includes objects, characters, etc. A player can interact with the dynamic part by clicking mouse on the highlighted links.^^ The game consists of scenes. Each game scene has a description, consisting of static and dynamic parts. Dynamic part includes objects, characters, etc. A player can interact with the dynamic part by clicking mouse on the highlighted links.^^
The current scene is called "Tutorial" an you are reading the static part of its description. The only object in this scene is the "Next" object, which you can see below the text. Thus, to continue learning you can click "Next".]], The current scene is called "Tutorial" an you are reading the static part of its description. The only object in this scene is the "Next" object, which you can see below the text. Thus, to continue learning you can click "Next".]],
obj = { obj = {
vobj(1, 'continue', '{Next}'), vobj('continue', '{Next}'),
}, },
}; };
@ -28,19 +27,20 @@ paper = obj {
nam = 'paper', nam = 'paper',
dsc = 'The first thing you notice in the room is a {sheet of paper}.', dsc = 'The first thing you notice in the room is a {sheet of paper}.',
tak = 'You take the paper.', tak = 'You take the paper.',
var { seen = false, haswriting = false },
inv = function(s) inv = function(s)
if here() == r2 then if here() == r2 then
s._seen = true; s.seen = true;
end end
if not s._haswriting then if not s.haswriting then
return 'A blank sheet of squared paper. Probably torn out of the copy-book.'; return 'A blank sheet of squared paper. Probably torn out of the copy-book.';
end end
return 'A sheet of squared paper with your name on it.'; p 'A sheet of squared paper with your name on it.';
end, end,
used = function(s, w) used = function(s, w)
if w == 'pencil' and here() == r4 then if w == pencil and here() == r4 then
s._haswriting = true; s.haswriting = true;
return 'You write your name on the paper.'; p 'You write your name on the paper.';
end end
end, end,
}; };
@ -49,11 +49,12 @@ pencil = obj {
nam = 'pencil', nam = 'pencil',
dsc = 'There is a {pencil} on the floor.', dsc = 'There is a {pencil} on the floor.',
tak = 'You pick the pencil.', tak = 'You pick the pencil.',
var { seen = false },
inv = function(s) inv = function(s)
if here() == r2 then if here() == r2 then
s._seen = true; s.seen = true;
end end
return 'An ordinary wooden pencil.'; p 'An ordinary wooden pencil.';
end, end,
}; };
@ -82,7 +83,7 @@ r2 = room {
lifeon('r2'); lifeon('r2');
end, end,
life = function(s) life = function(s)
if not paper._seen or not pencil._seen then if not paper.seen or not pencil.seen then
return return
end end
put(vway("continue", "Good!^^{Next}", 'r3')); put(vway("continue", "Good!^^{Next}", 'r3'));
@ -98,28 +99,30 @@ apple = obj {
nam = 'apple', nam = 'apple',
dsc = 'There\'s an {apple} on the table.', dsc = 'There\'s an {apple} on the table.',
tak = 'You take an apple from the table.', tak = 'You take an apple from the table.',
var { knife = false },
inv = function(s) inv = function(s)
if here() == r4 then if here() == r4 then
remove(s, me()); remove(s, me());
return 'You eat the apple.'; return 'You eat the apple.';
end end
return 'Looks appetizing.'; p 'Looks appetizing.';
end, end,
}; };
desk = obj { desk = obj {
nam = 'desk', nam = 'desk',
dsc = 'In this lesson you see a wooden {desk}.', dsc = 'In this lesson you see a wooden {desk}.',
var { seen = false, haswriting = false },
act = function(s) act = function(s)
if s._haswriting then if s.haswriting then
s._seen = true; s.seen = true;
return 'Large oaken desk. There\'s a pencil inscription on its top: "Lorem Ipsum".'; return 'Large oaken desk. There\'s a pencil inscription on its top: "Lorem Ipsum".';
end end
return 'Large oaken desk.'; p 'Large oaken desk.';
end, end,
used = function(s, w) used = function(s, w)
if w == 'pencil' and not s._haswriting then if w == pencil and not s.haswriting then
s._haswriting = true; s.haswriting = true;
return 'You write several letters on the desk.'; return 'You write several letters on the desk.';
end end
end, end,
@ -132,7 +135,7 @@ r3 = room {
lifeon('r3'); lifeon('r3');
end, end,
life = function(s) life = function(s)
if not desk._seen or not have('apple') then if not desk.seen or not have 'apple' then
return return
end end
put(vway("continue", "^^{Next}", 'r4')); put(vway("continue", "^^{Next}", 'r4'));
@ -150,11 +153,11 @@ r3 = room {
r4 = room { r4 = room {
nam = 'Lesson 4', nam = 'Lesson 4',
enter = function() enter = function()
apple._knife = false; apple.knife = false;
lifeon('r4'); lifeon('r4');
end, end,
life = function(s) life = function(s)
if not paper._haswriting or have('apple') then if not paper.haswriting or have('apple') then
return return
end end
put(vway("continue", "Good.^^{Next}", 'r5')); put(vway("continue", "Good.^^{Next}", 'r5'));
@ -173,8 +176,9 @@ r4 = room {
r5 = room { r5 = room {
nam = 'Lesson 5', nam = 'Lesson 5',
exit = function(s, t) exit = function(s, t)
if t ~= 'r6' then if t ~= r6 then
return 'We\'ve already finished this lesson.^ Go to lesson 6, please.', false; p 'We\'ve already finished this lesson.^ Go to lesson 6, please.'
return false;
end end
end, end,
dsc = [[Lesson 5. Moving Part I^^ dsc = [[Lesson 5. Moving Part I^^
@ -187,7 +191,7 @@ r5 = room {
r6 = room { r6 = room {
nam = 'Lesson 6', nam = 'Lesson 6',
exit = function(s, t) exit = function(s, t)
if t ~= 'theend' then if t ~= theend then
return 'We\'ve already finished this lesson..^ Go to the last lesson, please.', false; return 'We\'ve already finished this lesson..^ Go to the last lesson, please.', false;
end end
end, end,

View file

@ -1,11 +1,10 @@
-- $Name:Tutorial Español$ -- $Name:Tutorial Español$
game.codepage="UTF-8"; instead_version "1.3.0"
game.act = 'No puedes hacer eso.'; game.act = 'No puedes hacer eso.';
game.inv = "Hmm... Nop..."; game.inv = "Hmm... Nop...";
game.use = 'No pasa nada...'; game.use = 'No pasa nada...';
game.dsc = [[Comandos:^
look(or just Enter), act <on what> (or just on what), use <what> [on what], go <where>,
back, inv, way, obj, quit, save <fname>, load <fname>. Tab to autocomplete.^^]];
game.pic = '../tutorial2/instead.png'; game.pic = '../tutorial2/instead.png';
set_music('../tutorial2/ramparts.mod'); set_music('../tutorial2/ramparts.mod');
@ -13,13 +12,13 @@ set_music('../tutorial2/ramparts.mod');
main = room { main = room {
nam = 'Tutorial', nam = 'Tutorial',
act = function() act = function()
return goto('r1'); goto('r1');
end, end,
dsc = txtc("Bienvenido al tutorial de INSTEAD.")..[[^^ dsc = txtc("Bienvenido al tutorial de INSTEAD.")..[[^^
En INSTEAD un juego se divide en "escenas". Cada escena tiene una descripción, conformada por secciones estáticas y dinámicas. Las secciones estáticas pueden incluir objetos, personajes, etc. Como jugador puedes interactuar con las partes dinámicas al hacer click en los links resaltados.^^ En INSTEAD un juego se divide en "escenas". Cada escena tiene una descripción, conformada por secciones estáticas y dinámicas. Las secciones estáticas pueden incluir objetos, personajes, etc. Como jugador puedes interactuar con las partes dinámicas al hacer click en los links resaltados.^^
La escena actual se llama "Tutorial" y tu estás leyendo la sección estática de su descripción. El único objeto en esta escena es el objeto "Siguiente", que puedes ver más abajo. Esto es: para seguir aprendiendo haz click en "Siguiente".]], La escena actual se llama "Tutorial" y tu estás leyendo la sección estática de su descripción. El único objeto en esta escena es el objeto "Siguiente", que puedes ver más abajo. Esto es: para seguir aprendiendo haz click en "Siguiente".]],
obj = { obj = {
vobj(1, 'continue', '{Siguiente}'), vobj('continue', '{Siguiente}'),
}, },
}; };
@ -27,19 +26,20 @@ paper = obj {
nam = 'papel', nam = 'papel',
dsc = 'Lo primero que ves en la habitación es un {pedazo de papel}.', dsc = 'Lo primero que ves en la habitación es un {pedazo de papel}.',
tak = 'Coges el papel.', tak = 'Coges el papel.',
var { seen = false, haswriting = false },
inv = function(s) inv = function(s)
if here() == r2 then if here() == r2 then
s._seen = true; s.seen = true;
end end
if not s._haswriting then if not s.haswriting then
return 'Una hoja blanca y cuadrada. Probablemente arrancada de un libro.'; return 'Una hoja blanca y cuadrada. Probablemente arrancada de un libro.';
end end
return 'Una hoja cuadrada de papel con tu nombre escrito en ella.'; p 'Una hoja cuadrada de papel con tu nombre escrito en ella.';
end, end,
used = function(s, w) used = function(s, w)
if w == 'pencil' and here() == r4 then if w == pencil and here() == r4 then
s._haswriting = true; s.haswriting = true;
return 'Escribes tu nombre en el papel.'; p 'Escribes tu nombre en el papel.';
end end
end, end,
}; };
@ -48,11 +48,12 @@ pencil = obj {
nam = 'lápiz', nam = 'lápiz',
dsc = 'Hay un {lápiz} en el piso.', dsc = 'Hay un {lápiz} en el piso.',
tak = 'Coges el lápiz.', tak = 'Coges el lápiz.',
var { seen = false },
inv = function(s) inv = function(s)
if here() == r2 then if here() == r2 then
s._seen = true; s.seen = true;
end end
return 'Un lápiz común de madera.'; p 'Un lápiz común de madera.';
end, end,
}; };
@ -81,7 +82,7 @@ r2 = room {
lifeon('r2'); lifeon('r2');
end, end,
life = function(s) life = function(s)
if not paper._seen or not pencil._seen then if not paper.seen or not pencil.seen then
return return
end end
put(vway("continue", "Bien!^^{Siguiente}", 'r3')); put(vway("continue", "Bien!^^{Siguiente}", 'r3'));
@ -97,29 +98,31 @@ apple = obj {
nam = 'manzana', nam = 'manzana',
dsc = 'Hay una {manzana} sobre la mesa.', dsc = 'Hay una {manzana} sobre la mesa.',
tak = 'Coges la manzana de la mesa.', tak = 'Coges la manzana de la mesa.',
var { knife = false },
inv = function(s) inv = function(s)
if here() == r4 then if here() == r4 then
remove(s, me()); remove(s, me());
return 'Te comes la manzana.'; return 'Te comes la manzana.';
end end
return 'Luce apetecible.'; p 'Luce apetecible.';
end, end,
}; };
desk = obj { desk = obj {
nam = 'escritorio', nam = 'escritorio',
dsc = 'Aquí ves un {escritorio} de madera.', dsc = 'Aquí ves un {escritorio} de madera.',
var { seen = false, haswriting = false },
act = function(s) act = function(s)
if s._haswriting then if s.haswriting then
s._seen = true; s.seen = true;
return 'Un gran escritorio de roble. Hay algo escrito en él: "Lorem Ipsum".'; return 'Un gran escritorio de roble. Hay algo escrito en él: "Lorem Ipsum".';
end end
return 'Un gran escritorio de roble.'; p 'Un gran escritorio de roble.';
end, end,
used = function(s, w) used = function(s, w)
if w == 'pencil' and not s._haswriting then if w == pencil and not s.haswriting then
s._haswriting = true; s.haswriting = true;
return 'Garabateas unas palabras sobre el escritorio.'; p 'Garabateas unas palabras sobre el escritorio.';
end end
end, end,
obj = { 'apple' }, obj = { 'apple' },
@ -131,7 +134,7 @@ r3 = room {
lifeon('r3'); lifeon('r3');
end, end,
life = function(s) life = function(s)
if not desk._seen or not have('apple') then if not desk.seen or not have 'apple' then
return return
end end
put(vway("continue", "^^{Siguiente}", 'r4')); put(vway("continue", "^^{Siguiente}", 'r4'));
@ -149,11 +152,11 @@ r3 = room {
r4 = room { r4 = room {
nam = 'Lección 4', nam = 'Lección 4',
enter = function() enter = function()
apple._knife = false; apple.knife = false;
lifeon('r4'); lifeon('r4');
end, end,
life = function(s) life = function(s)
if not paper._haswriting or have('apple') then if not paper.haswriting or have 'apple' then
return return
end end
put(vway("continue", "Bien!^^{Siguiente}", 'r5')); put(vway("continue", "Bien!^^{Siguiente}", 'r5'));
@ -172,8 +175,9 @@ r4 = room {
r5 = room { r5 = room {
nam = 'Lección 5', nam = 'Lección 5',
exit = function(s, t) exit = function(s, t)
if t ~= 'r6' then if t ~= r6 then
return 'Ya hemos terminado esta lección.^ Ve a la lección 6, por favor.', false; p 'Ya hemos terminado esta lección.^ Ve a la lección 6, por favor.'
return false;
end end
end, end,
dsc = [[Lección 5. Moviéndose Parte I^^ dsc = [[Lección 5. Moviéndose Parte I^^
@ -186,7 +190,7 @@ r5 = room {
r6 = room { r6 = room {
nam = 'Lección 6', nam = 'Lección 6',
exit = function(s, t) exit = function(s, t)
if t ~= 'theend' then if t ~= theend then
return 'Ya hemos terminado esta lección.^ Ve a la última lección, por favor.', false; return 'Ya hemos terminado esta lección.^ Ve a la última lección, por favor.', false;
end end
end, end,

View file

@ -5,8 +5,6 @@ require "dash" -- '--' replace :)
require "para" -- be more "Russian" require "para" -- be more "Russian"
require "quotes" require "quotes"
game.codepage="UTF-8";
game.act = 'Не получается.'; game.act = 'Не получается.';
game.inv = "Гм.. Не то.."; game.inv = "Гм.. Не то..";
game.use = 'Не сработает...'; game.use = 'Не сработает...';