Final game play
The colors mean something different this time. I already drew enough about overwrite and extend features, those haven't changed really. This is to illustrate my new fancy method of operations.
Man, this really is pretty involved. I know you just see a couple of lines. You can probably even guess what they mean, but that's the "because" stuff.
Here we go:
I now treat Import() like a function. It accepts an unlimited amount of arguments. The only rule is that the first argument has to be the url of the script you want to import. Past that you can stick as many (comma separated) "names" as you like.
Here is where the involved part comes and it goes all the way to the beginning of the parse (lol). My system grabs the contents of a file and considers it a string, the very next thing it does is sequester "strings" and replace them with a token ("TXT[0]"). The 0 represents the index that the actual string was stored in, on stringArray.
Just understand that now we have an Array of anything that was in quotes.
The next thing it does is remove comments, followed by removing whitespace. Then it looks for an import. Now, in my import "function" all the "names" have already been stored in stringArray (because they were in quotes). Import is found and the url is parsed from the list. The contents of that file are then retrieved and all of what I said happens again. Only difference is, this time, there are all those names hanging around. My script converts that names list to an array and for every name in the array it duplicates the current content and adds it to itself. It then looks for $TARGETNAME and replaces it with the current name.
Inner EDIT: I never made it clear why it mattered that the names were already stored in the stringArray. I realized upon writing this edit that, it doesn't matter (lol). That's why I never made it clear.
So, in English, what does this mean? Well, consider that the old import method would have to do a fresh load for every time you wanted to duplicate the script. This way, I already have the script, why not just duplicate it to itself for as many times as I need it? In the duplication I am also assigning it a unique name.
So, that blows my catch 22 that I never explained, clean out the water. My examples are getting stronger as this develops, but I don't have quite enough yet for this to really get it's point across. For now, you will have to imagine that the content on the right, far outweighs, the reproductive and morphing code on the left.
Like I said, I'm not gearing this to duplicating a textbox. Which unfortunately is the best I have right now. That will change.
EDIT: You do not have to type import as much. That's another +.
The colors mean something different this time. I already drew enough about overwrite and extend features, those haven't changed really. This is to illustrate my new fancy method of operations.
Man, this really is pretty involved. I know you just see a couple of lines. You can probably even guess what they mean, but that's the "because" stuff.
Here we go:
I now treat Import() like a function. It accepts an unlimited amount of arguments. The only rule is that the first argument has to be the url of the script you want to import. Past that you can stick as many (comma separated) "names" as you like.
Here is where the involved part comes and it goes all the way to the beginning of the parse (lol). My system grabs the contents of a file and considers it a string, the very next thing it does is sequester "strings" and replace them with a token ("TXT[0]"). The 0 represents the index that the actual string was stored in, on stringArray.
Just understand that now we have an Array of anything that was in quotes.
The next thing it does is remove comments, followed by removing whitespace. Then it looks for an import. Now, in my import "function" all the "names" have already been stored in stringArray (because they were in quotes). Import is found and the url is parsed from the list. The contents of that file are then retrieved and all of what I said happens again. Only difference is, this time, there are all those names hanging around. My script converts that names list to an array and for every name in the array it duplicates the current content and adds it to itself. It then looks for $TARGETNAME and replaces it with the current name.
Inner EDIT: I never made it clear why it mattered that the names were already stored in the stringArray. I realized upon writing this edit that, it doesn't matter (lol). That's why I never made it clear.
So, in English, what does this mean? Well, consider that the old import method would have to do a fresh load for every time you wanted to duplicate the script. This way, I already have the script, why not just duplicate it to itself for as many times as I need it? In the duplication I am also assigning it a unique name.
So, that blows my catch 22 that I never explained, clean out the water. My examples are getting stronger as this develops, but I don't have quite enough yet for this to really get it's point across. For now, you will have to imagine that the content on the right, far outweighs, the reproductive and morphing code on the left.
Like I said, I'm not gearing this to duplicating a textbox. Which unfortunately is the best I have right now. That will change.
EDIT: You do not have to type import as much. That's another +.
Comment