Ferc Kast Posted May 14, 2008 Share Posted May 14, 2008 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)? Link to comment Share on other sites More sharing options...
glovemaster Posted May 15, 2008 Share Posted May 15, 2008 void main(){ if(GetGlobalString("K_LAST_MODULE") == "301NARb") return TRUE; return FALSE; } Link to comment Share on other sites More sharing options...
Ferc Kast Posted May 18, 2008 Author Share Posted May 18, 2008 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", "", "", "", "", "", "")); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.