Yes, use the _init_name function instead of the plain _init version.
For example:
local names = {}
function my_script_init_name( e, name )
names[ e ] = name
end
function my_script_main( e )
if names[ e ] ~= nil then
PromptLocal( e, names[ e ] )
end
end
Been there, done that, got all the T-Shirts!