I've been watching Lee's broadcast #15 which is about simple questing.
I don't like just having bare text displayed - I'd much rather have a little speech box around it.
Adopting Lees trick with a light, I tried to achieve that with the following code:-
function textoncharacter_init(e)
-- no activity by default
end
function textoncharacter_main(e)
PlayerDist = GetPlayerDistance(e)
if g_Entity[e]['activated'] == 0 and PlayerDist < 100 then
Panel(g_Entity[e]['x'],g_Entity[e]['y'],g_Entity[e]['x']+100,g_Entity[e]['y']+30)
PromptLocal(e,"If you want out, prisoner, then go get a streetmap. Ha Ha!")
SetActivated(e,1)
end
end
It doesn't work.
I don't get an error, but I don't get a panel either.
I presume my use of g_Entity[e]['x'] , (etc.) is at fault.
Can someone tell me what I'm doing wrong, please?
You can't teach an old dog.