screenlock
i dont know if there is an easy way to do this which i am just not aware of, and i hope there is, but how the hell can i check to see if the screen is locked or not?
Just set it to zero (false) and either leave it like that or set it to one (true) after.
What the hell are you talking about?
josh: Keep track of it in a global.
josh: Keep track of it in a global.
using globals for something like that for me is like kissing my sisters ass, there has to be a better way. also i would have to change every single script that locks the screen to make it change the global or whatever.
Then have fun not using your feature. There really isn't another way.
yes there is you just dont know how. maybe you should get a computer book or something and learn how to use one.
I must say I was hoping for something like:
int &crap = screenlock(-1);
But it doesn't exist
int &crap = screenlock(-1);
But it doesn't exist

What the hell are you talking about?
Unless I'm giving him too much credit, I think he is suggesting EXACTLY what you have, albeit less clearly.
Unless I'm giving him too much credit, I think he is suggesting EXACTLY what you have, albeit less clearly.
you could create a temp global variable then using the editor seqence trick and then make a method in the script with the editor sequence that will assign the editor sequence to the temp global variable. Also make other methods in script to change the editor sequence thing. Then whenever you want to know the number call the scripts method and then look at the temp global variable to see what it is. Then if you want to change it call the other methods in the script to change it. I am not sure if this would work but it is worth a try.
uhm well say i want to use a script from dink like the pillbugs that use screenlock or something. then i have another script that wants to check if the screen is locked or not. the script i make i can do whatever like use local vars and such but WITHOUT changing the first script.
so
script number 1 (unchangeable): screenlock(1);
script number 2: how do i see if the screen is locked?
so
script number 1 (unchangeable): screenlock(1);
script number 2: how do i see if the screen is locked?
This is impossible, afaik.
The way I do enemy-based-screenlocks lately is copied from PotA. I have a script slock.c and when I put this on a map with enemies, the screen is automatically locked and unlocked when they are all dead. No more making different scripts for screenlocking and normal enemies.
It might not be exactly what you asked for, but at least it covers some of the situations.
The way I do enemy-based-screenlocks lately is copied from PotA. I have a script slock.c and when I put this on a map with enemies, the screen is automatically locked and unlocked when they are all dead. No more making different scripts for screenlocking and normal enemies.
It might not be exactly what you asked for, but at least it covers some of the situations.
well im going to prove you wrong when i discover the secret procedure called is_screen_locked() or something and ill charge you $20 to know what it is.