i
我有一个 JS 函数可以按原样读取变量。我想传递这个用 ROT13 编码的变量,所以我的函数首先必须解码变量然后继续。
问题是如何让JS解码并使用它。
我找到了 ROT13 的 JS实现,但我不知道在我的函数中包含在哪里:
{{
_inst.gmlimgp=parameter_string( 1 );
_inst.gmlsp=string_pos( "i=", _inst.gmlimgp );
if ((_inst.gmlsp!=0)) {{
_inst.gmlsp+=2;
_inst.gmlimgp=string_copy( _inst.gmlimgp, _inst.gmlsp, string_length( _inst.gmlimgp ) );
g_pBuiltIn.background_index[1]=3;
background_replace( g_pBuiltIn.background_index[1], _inst.gmlimgp, 0, 0 );
_inst.set_sprite_index( (-4) );
}
;}
else {{
show_message( "invalid parameter" );
}
;};
}
;}