summaryrefslogtreecommitdiffstats
path: root/example/scripts/npcs/healer.lua
blob: 910e221191f16f475b7631967ddfdae0aa642c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--[[

 Healer NPC example

--]]

function Healer(npc, ch)
    npc_message("Do you need healing?")
    local c = npc_choice("Heal me fully", "Heal 100 HP", "Don't heal me")
    if c == 1 then
        being_heal(ch)
    elseif c == 2 then
        being_heal(ch, 100)
    end
end