E
Elgarion
Guest
Hello dear GM community !
I have a little issue with some code, hope some of you will help !
I would like to use strings/arrays to 'remember' the name of a few scripts. See below an example of what I would like to do :
then, somewhere else, I would like to call these two scripts
the code below is a complete nonsense, but I hope you will understand what I'm trying to do poorly
Help ! ;-)
I have a little issue with some code, hope some of you will help !
I would like to use strings/arrays to 'remember' the name of a few scripts. See below an example of what I would like to do :
Code:
global.ScriptName_string[1] ="scr_this_is_a_script()" ;
global.ScriptName_string[2] ="scr_what_a_beautiful_script()" ;
the code below is a complete nonsense, but I hope you will understand what I'm trying to do poorly
Code:
var i;
for (i=1;i<=2 ; i++)
{
// ta-dam ! the scripts 'should' load in order - but here they won't
asset_get_index(string(global.ScriptName_string[i]))
}