Skip to content

Fix mp.msg.HELP(). #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions parser/mp-en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ function mp:before_Enter(w)
end

mp.msg.HELP = function()
p [[{$fmt b|INSTRUCTIONS}^^
local help = [[{$fmt b|INSTRUCTIONS}^^

Enter your actions in verb noun form. For example:^
> open door^
Expand All @@ -757,8 +757,9 @@ To exam your inventory, enter "inv".^
^
Use compass directions to walk. For example: "go north" or "north" or just "n". There are also up and down directions, outside and inside.]]
if not instead.tiny then
p [[^^You may use the "TAB" key for autocompletion.]]
help = help .. [[^^You may use the "TAB" key for autocompletion.]]
end
return help
end

function mp.token.compass1(_)
Expand Down
5 changes: 3 additions & 2 deletions parser/mp-ru.lua
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ function mp:before_Enter(w)
end

mp.msg.HELP = function()
p [[{$fmt b|КАК ИГРАТЬ?}^^
local help = [[{$fmt b|КАК ИГРАТЬ?}^^

Вводите ваши действия в виде простых предложений вида: глагол -- существительное. Например:^
> открыть дверь^
Expand All @@ -740,8 +740,9 @@ mp.msg.HELP = function()
^
Для перемещений используйте стороны света, например: "идти на север" или "север" или просто "с". Кроме сторон света можно перемещаться вверх ("вверх" или "вв") и вниз ("вниз" или "вн"), "внутрь" и "наружу".]]
if not instead.tiny then
p [[^^Вы можете воспользоваться клавишей "TAB" для автодополнения ввода.]]
help = help .. [[^^Вы можете воспользоваться клавишей "TAB" для автодополнения ввода.]]
end
return help
end

function mp.token.compass1(_)
Expand Down