-- your code goes here-- A basic monster script skeleton you can copy and modify for your own creations.
comments = {"Кажется,она настроенна \r очень серьёзно", "Пламя окутывает вас горячим пледом", "Её слепые глаза смотрят на вас\r с ...сожалением?."}
commands = {"Поговорить", "Плакать", "Сосредоточиться"}
Crycounter = 0
randomdialogue = {"Звёзды никогда не лгут./n Мне жаль", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
sprite = "Keeper" --Always PNG. Extension is added automatically.
name = "Инга"
hp = 1000
atk = 20
def = 40
check = "Известная также как Хранитель Пути и Следящая за Небом"
dialogbubble = "right" -- See documentation for what bubbles you have available.
canspare = false
cancheck = true
-- Happens after the slash animation but before
function HandleAttack(attackstatus)
if attackstatus == -1 then
-- player pressed fight but didn't press Z afterwards
else
-- player did actually attack
end
end
-- This handles the commands; all-caps versions of the commands list you have above.
function HandleCustomCommand(command)
if command == "Поговорить" then
currentdialogue = {"Звёзды никогда не лгут./n Мне жаль"}
elseif command == "Сосредоточиться" then
currentdialogue = {"..."}
elseif command == "Плакать" then
if Crycounter == 0 then
BattleDialog({"Не в силах сдержать эмоции,/r вы пустили слезу"})
elseif Crycounter == 1 then
BattleDialog({"Вы продолжаете затапливать всё слезами."})
else
BattleDialog({"Это невероятно,но слёзы закончились./r ... как и терпение Инги."})
end
Crycounter = Crycounter + 1
BattleDialog({"Вы решили " .. command .. "."})
end