How can you make a conditional script that checks if you came from a certain module (which, for all intents & purposes, I will call 301NARb)?
void main(){
if(GetGlobalString("K_LAST_MODULE") == "301NARb")
return TRUE;
return FALSE;
}
:^:
I have a question about why the following script won't run for me. It did compile perfectly for me. I edited a_return371.nss to make that script; So, why won't it run? Or should I have modded another script to make it take me back to 301NARb, if that's the module I came from?
void main(){
if(GetGlobalString("K_LAST_MODULE") == "301NARb") {
SetGlobalFadeOut(0.0, 0.0, 0.0, 0.0, 0.0);
AssignCommand(GetFirstPC(), StartNewModule("301NARb", "from_371", "", "", "", "", "", ""));
}
else if(GetGlobalString("K_LAST_MODULE") == "301NAR") {
SetGlobalFadeOut(0.0, 0.0, 0.0, 0.0, 0.0);
AssignCommand(GetFirstPC(), StartNewModule("301NAR", "from_371", "", "", "", "", "", ""));
}
}