blob: 35696736f81b251149ceb2f5ddd644f7013c4b56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--[[
Healer NPC example
--]]
function Healer(npc, ch)
npc_message(npc, ch, "Do you need healing?")
local c = npc_choice(npc, ch, "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
|