The Dink Network

screenlock

March 10th 2005, 01:22 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
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?
March 10th 2005, 01:08 PM
wizardg.gif
Chaotic
Peasant He/Him
 
Just set it to zero (false) and either leave it like that or set it to one (true) after.
March 10th 2005, 09:38 PM
wizardb.gif
merlin
Peasant He/Him
 
What the hell are you talking about?

josh: Keep track of it in a global.
March 10th 2005, 10:26 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
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.
March 11th 2005, 12:19 AM
wizardb.gif
merlin
Peasant He/Him
 
Then have fun not using your feature. There really isn't another way.
March 11th 2005, 03:09 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
yes there is you just dont know how. maybe you should get a computer book or something and learn how to use one.
March 11th 2005, 05:31 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
I must say I was hoping for something like:

int &crap = screenlock(-1);

But it doesn't exist
March 11th 2005, 09:37 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
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.
March 11th 2005, 09:40 AM
goblins.gif
igloo15
Peasant He/Him
 
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.
March 11th 2005, 01:08 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
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?
March 11th 2005, 01:17 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
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.
March 11th 2005, 11:49 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
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.
March 12th 2005, 02:41 PM
wizardg.gif
Chaotic
Peasant He/Him
 
Have fun!