You made me confused. BJ means Blizzard JASS, it makes things easier. So I prefer to use SubString instead of SubStringBJ. Like what Nuuby said, SubString is a native. And also, natives are more efficient than BJs.naturesfury wrote:erm...it checks to see if the substring is "-gold " plus, if the last one was counted....you couldn't select just one character o.o
SubString("wheee",0,1)="w"
SubStringBJ("wheee",1,1)="w"
the bj just subtracts one from the 2nd argument so they are essentially equivalent
On the little tutorial I posted earlier, I meant in GUI. The way strings work in GUI. Because GUI is made to be easy. And JASS has no reason to be made easy. I didn't meant about SubStringBJ and SubString. If you do not know. GUI uses BJs, and BJs are made to make things easier. I know it sounds confusing. Just saying, GUI is different from JASS.
GUI = 1st character = 1
JASS = 1st character = 0
It's the same what you said in SubStringBJ. It -1 the 2nd argument. And in GUI. It uses SubStringBJ, that's why the first character is "1" in GUI.
You can try. It'll take a lot time and work though.Nuuby wrote:So should we have a guide on all commonly used natives or are some just hard to understand. Or at least those used in the common cheat packs around here.