Get light level

Started by rmonic79, Thu 28/04/2016 06:57:12

Previous topic - Next topic

rmonic79

Hi guys i'm using 3.4 and i didn't understand how to get the light level of a characters that use Setlightlevel()
thanks ;)

Vincent

Ciao rmonic79, as far as I know.. there isn't any "Setlightlevel()" :)
I have just done to make a quickly test inside 3.4, the only thing that you should have to do is to draw normally your region inside the room, suddenly, you should only change the value "LightLevel" from the editor panel (let's say for example 50) And it just work as it should be (roll)

If you need to get the variable from the light level region you should use "region.LightLevel"

Crimson Wizard

#2
Quote from: rmonic79 on Thu 28/04/2016 06:57:12
Hi guys i'm using 3.4 and i didn't understand how to get the light level of a characters that use Setlightlevel()
thanks ;)
Hmm, there is no direct way. Probably worth adding.
As a workaround, you could remember which light level you assign to the character yourself in a global variable, and then use it as a reference.


Quote from: Vincent on Thu 28/04/2016 09:54:33
Ciao rmonic79, as far as I know.. there isn't any "Setlightlevel()" :)
There is, it is a new command added to 3.4.0: http://www.adventuregamestudio.co.uk/forums/index.php?topic=51050.0

Vincent

Quote from: Crimson Wizard on Thu 28/04/2016 12:06:54
There is, it is a new command added to 3.4.0: http://www.adventuregamestudio.co.uk/forums/index.php?topic=51050.0

Yes, it is one of the latest functions added on the very newest version I believe (roll)
Because I didn't found this function on 3.4.0.3 :(

Quote from: Crimson Wizard on Thu 28/04/2016 12:06:54
As a workaround, you could remember which light level you assign to the character yourself in a global variable, and then use it as a reference.

This is however the best workaround that I could image in this case :)

SMF spam blocked by CleanTalk