There is no "ptr_for_name" function. When you want to convert a variable name to a variable pointer, use engine_getvar.