A not-so-quick question!
Basically, I SetCommonData("Boss", 0); in an enemy script. After that, there is a cutin function (Hele's, altered), and an Enemy Setup task.
The enemy setup task, when using GetCommonData("Boss") successfully returns 0.
The cutin task, on the other hand, states that variables of different types are being compared. The error goes away when I change the comparison value to a string. Of course, that's not the value I want to compare to, and so the default goes instead of what I want.
Help?
Cutin: let CSD = GetCurrentScriptDirectory;
let textdata = CSD ~ ".\..\system\spellcardanm.png";
if(GetCommonData("Boss")==0 || GetCommonData("Boss")==1 || GetCommonData("Boss")==6){ //Yellow. Pi, Pika, Jolt
textdata = CSD ~ ".\..\system\ExAttackYellow.png";
}
Enemy Setup: if(GetCommonData("Boss")==0 || GetCommonData("Boss")==1 || GetCommonData("Boss")==6){ //Yellow. Pi, Pika, Jolt
ascent(i in 0..4){ObjEffect_SetVertexColor(objCirc, i, 150, 255, 255, 255);}
}