Another reason:
NPC Code:
if (letter==A){
type A;
} if (letter==B){
type B;
} else {
type CDEFGHIJKLMNOPQRSTUVWXYZ;
}
If the letter's A, you'll also get CDEFGHIJKLMNOPQRSTUVWXYZ.
Good way:
NPC Code:
if (letter==A){
type A;
} else if (letter==B){
type B;
} else {
type CDEFGHIJKLMNOPQRSTUVWXYZ;
}
This bugged me for a while in C++, until i showed the scripts to Tseng and he said he
liked if else better, i used that and it was fixed . Me < Tseng