You cannot make new Code-Functions.... otherwise there would be a lot less problems with scripting ^^. Its the same like changing the hard-coded limits you would need complete access to the engine and do major changes in it .... which noone outside sega has.