Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

The change was to not modify argument0 directly, but to use a helper variable to hold it (I don't remember what the compilation error was but presumably argument is read-only after 2.3)

The current version looks like this:

///tsprintf(format,...)
function tsprintf() {
     //Trivial String Print Format
     //Replaces each % percent sign with an argument, then returns the string.
     //Inteded to make writing debug printouts less painful.
     var c, s = argument[0];
     for(c = 1;c < argument_count;c++){
         s = string_replace(s,"%",string(argument[c]));
     }
     return s;
}

Thank you very much for the reply, I really appreciate it. Hey what generation of Pokemon would this be like, Gen 2?

There's enough differences that there's not a 1:1 mapping (partially for legal reasons). If I had to narrow it down I'd probably say "gen 3" because there's support for 2v2 battles (and horde battles) which weren't around in the GBC days.

(+1)

Oh that makes sense. Thanks again for making this, it's an awesome engine!