// scope Convert // REQUIRES Table Context globals integer array _toTypeOffset endglobals function _convert takes integer _toType,integer _toReg,integer _fromType,integer _fromReg,integer _ctx returns nothing set _toType = _toTypeOffset [_toType] if (_toType < 5) then if (_toType < 3) then if (_toType < 2) then if (_fromType < 49) then if (_fromType < 25) then if (_fromType < 13) then if (_fromType < 7) then if (_fromType < 4) then if (_fromType < 3) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_agent (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_event (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 5) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_player (Context#_locals[_ctx],_fromReg)) else if (_fromType < 6) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_widget (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_unit (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 10) then if (_fromType < 8) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_destructable (Context#_locals[_ctx],_fromReg)) else if (_fromType < 9) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_item (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_ability (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 11) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_buff (Context#_locals[_ctx],_fromReg)) else if (_fromType < 12) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_force (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_group (Context#_locals[_ctx],_fromReg)) endif endif endif endif else if (_fromType < 19) then if (_fromType < 16) then if (_fromType < 14) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_trigger (Context#_locals[_ctx],_fromReg)) else if (_fromType < 15) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_triggercondition (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_timer (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 17) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_location (Context#_locals[_ctx],_fromReg)) else if (_fromType < 18) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_region (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_rect (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 22) then if (_fromType < 20) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_boolexpr (Context#_locals[_ctx],_fromReg)) else if (_fromType < 21) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_conditionfunc (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_filterfunc (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 23) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_sound (Context#_locals[_ctx],_fromReg)) else if (_fromType < 24) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_effect (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_fogmodifier (Context#_locals[_ctx],_fromReg)) endif endif endif endif endif else if (_fromType < 37) then if (_fromType < 31) then if (_fromType < 28) then if (_fromType < 26) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_dialog (Context#_locals[_ctx],_fromReg)) else if (_fromType < 27) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_button (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_quest (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 29) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_questitem (Context#_locals[_ctx],_fromReg)) else if (_fromType < 30) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_defeatcondition (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_timerdialog (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 34) then if (_fromType < 32) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_leaderboard (Context#_locals[_ctx],_fromReg)) else if (_fromType < 33) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_multiboard (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_multiboarditem (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 35) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_trackable (Context#_locals[_ctx],_fromReg)) else if (_fromType < 36) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_gamecache (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_hashtable (Context#_locals[_ctx],_fromReg)) endif endif endif endif else if (_fromType < 43) then if (_fromType < 40) then if (_fromType < 38) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_triggeraction (Context#_locals[_ctx],_fromReg)) else if (_fromType < 39) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_unitpool (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_itempool (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 41) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_race (Context#_locals[_ctx],_fromReg)) else if (_fromType < 42) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_alliancetype (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_racepreference (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 46) then if (_fromType < 44) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_gamestate (Context#_locals[_ctx],_fromReg)) else if (_fromType < 45) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_igamestate (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_fgamestate (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 47) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playerstate (Context#_locals[_ctx],_fromReg)) else if (_fromType < 48) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playerscore (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playergameresult (Context#_locals[_ctx],_fromReg)) endif endif endif endif endif endif else if (_fromType < 72) then if (_fromType < 60) then if (_fromType < 54) then if (_fromType < 51) then if (_fromType < 50) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_unitstate (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_aidifficulty (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 52) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_eventid (Context#_locals[_ctx],_fromReg)) else if (_fromType < 53) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_gameevent (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playerevent (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 57) then if (_fromType < 55) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playerunitevent (Context#_locals[_ctx],_fromReg)) else if (_fromType < 56) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_unitevent (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_limitop (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 58) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_widgetevent (Context#_locals[_ctx],_fromReg)) else if (_fromType < 59) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_dialogevent (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_unittype (Context#_locals[_ctx],_fromReg)) endif endif endif endif else if (_fromType < 66) then if (_fromType < 63) then if (_fromType < 61) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_gamespeed (Context#_locals[_ctx],_fromReg)) else if (_fromType < 62) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_gamedifficulty (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_gametype (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 64) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_mapflag (Context#_locals[_ctx],_fromReg)) else if (_fromType < 65) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_mapvisibility (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_mapsetting (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 69) then if (_fromType < 67) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_mapdensity (Context#_locals[_ctx],_fromReg)) else if (_fromType < 68) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_mapcontrol (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playerslotstate (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 70) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_volumegroup (Context#_locals[_ctx],_fromReg)) else if (_fromType < 71) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_camerafield (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_camerasetup (Context#_locals[_ctx],_fromReg)) endif endif endif endif endif else if (_fromType < 84) then if (_fromType < 78) then if (_fromType < 75) then if (_fromType < 73) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_playercolor (Context#_locals[_ctx],_fromReg)) else if (_fromType < 74) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_placement (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_startlocprio (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 76) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_raritycontrol (Context#_locals[_ctx],_fromReg)) else if (_fromType < 77) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_blendmode (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_texmapflags (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 81) then if (_fromType < 79) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_effecttype (Context#_locals[_ctx],_fromReg)) else if (_fromType < 80) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_weathereffect (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_terraindeformation (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 82) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_fogstate (Context#_locals[_ctx],_fromReg)) else if (_fromType < 83) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_version (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_itemtype (Context#_locals[_ctx],_fromReg)) endif endif endif endif else if (_fromType < 90) then if (_fromType < 87) then if (_fromType < 85) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_texttag (Context#_locals[_ctx],_fromReg)) else if (_fromType < 86) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_attacktype (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_damagetype (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 88) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_weapontype (Context#_locals[_ctx],_fromReg)) else if (_fromType < 89) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_soundtype (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_lightning (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 93) then if (_fromType < 91) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_pathingtype (Context#_locals[_ctx],_fromReg)) else if (_fromType < 92) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_mousebuttontype (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_animtype (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 94) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_subanimtype (Context#_locals[_ctx],_fromReg)) else if (_fromType < 95) then call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_image (Context#_locals[_ctx],_fromReg)) else call Table#_set_handle (Context#_locals[_ctx],_toReg,Table#_get_ubersplat (Context#_locals[_ctx],_fromReg)) endif endif endif endif endif endif endif else if (_fromType < 20) then if (_fromType < 11) then if (_fromType < 7) then if (_fromType < 5) then if (_fromType < 4) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_event (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_player (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 6) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_widget (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_unit (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 9) then if (_fromType < 8) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_destructable (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_item (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 10) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_ability (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_buff (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 15) then if (_fromType < 13) then if (_fromType < 12) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_force (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_group (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 14) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_trigger (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_triggercondition (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 17) then if (_fromType < 16) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_timer (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_location (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 18) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_region (Context#_locals[_ctx],_fromReg)) else if (_fromType < 19) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_rect (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_boolexpr (Context#_locals[_ctx],_fromReg)) endif endif endif endif endif else if (_fromType < 28) then if (_fromType < 24) then if (_fromType < 22) then if (_fromType < 21) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_conditionfunc (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_filterfunc (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 23) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_sound (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_effect (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 26) then if (_fromType < 25) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_fogmodifier (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_dialog (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 27) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_button (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_quest (Context#_locals[_ctx],_fromReg)) endif endif endif else if (_fromType < 32) then if (_fromType < 30) then if (_fromType < 29) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_questitem (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_defeatcondition (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 31) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_timerdialog (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_leaderboard (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 34) then if (_fromType < 33) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_multiboard (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_multiboarditem (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 35) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_trackable (Context#_locals[_ctx],_fromReg)) else if (_fromType < 36) then call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_gamecache (Context#_locals[_ctx],_fromReg)) else call Table#_set_agent (Context#_locals[_ctx],_toReg,Table#_get_hashtable (Context#_locals[_ctx],_fromReg)) endif endif endif endif endif endif endif else if (_toType < 4) then if (_fromType < 7) then call Table#_set_widget (Context#_locals[_ctx],_toReg,Table#_get_unit (Context#_locals[_ctx],_fromReg)) else if (_fromType < 8) then call Table#_set_widget (Context#_locals[_ctx],_toReg,Table#_get_destructable (Context#_locals[_ctx],_fromReg)) else call Table#_set_widget (Context#_locals[_ctx],_toReg,Table#_get_item (Context#_locals[_ctx],_fromReg)) endif endif else call Table#_set_ability (Context#_locals[_ctx],_toReg,Table#_get_buff (Context#_locals[_ctx],_fromReg)) endif endif else if (_toType < 7) then if (_toType < 6) then if (_fromType < 21) then call Table#_set_boolexpr (Context#_locals[_ctx],_toReg,Table#_get_conditionfunc (Context#_locals[_ctx],_fromReg)) else call Table#_set_boolexpr (Context#_locals[_ctx],_toReg,Table#_get_filterfunc (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 45) then call Table#_set_gamestate (Context#_locals[_ctx],_toReg,Table#_get_igamestate (Context#_locals[_ctx],_fromReg)) else call Table#_set_gamestate (Context#_locals[_ctx],_toReg,Table#_get_fgamestate (Context#_locals[_ctx],_fromReg)) endif endif else if (_toType < 8) then if (_fromType < 55) then if (_fromType < 53) then call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_gameevent (Context#_locals[_ctx],_fromReg)) else if (_fromType < 54) then call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_playerevent (Context#_locals[_ctx],_fromReg)) else call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_playerunitevent (Context#_locals[_ctx],_fromReg)) endif endif else if (_fromType < 57) then if (_fromType < 56) then call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_unitevent (Context#_locals[_ctx],_fromReg)) else call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_limitop (Context#_locals[_ctx],_fromReg)) endif else if (_fromType < 58) then call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_widgetevent (Context#_locals[_ctx],_fromReg)) else call Table#_set_eventid (Context#_locals[_ctx],_toReg,Table#_get_dialogevent (Context#_locals[_ctx],_fromReg)) endif endif endif else call Table#_set_real (Context#_locals[_ctx],_toReg,Table#_get_integer (Context#_locals[_ctx],_fromReg)) endif endif endif endfunction function _init takes nothing returns nothing set _toTypeOffset [1] = 1 set _toTypeOffset [2] = 2 set _toTypeOffset [5] = 3 set _toTypeOffset [9] = 4 set _toTypeOffset [19] = 5 set _toTypeOffset [43] = 6 set _toTypeOffset [51] = 7 set _toTypeOffset [96] = 8 endfunction