I was wondering if there was a way to turn off (when the player used a input key to turn it on) the player lamp with a event that would still allow all the others lights to still work.
Way to turn off player lamp with event?
Khas ScriptsHaven't tried this, but as there is a script call for 'group' lights, maybe put the player lamp into its own group and then use the script call to reduce the opacity to zero would work.
Hey there!
Thanks for the suggestion. However the $game_map.shadows.group_opacity(group, opacity, time) seems to not effect the light itself, and I dont see any other script calls in the manul for it 🙁
Thanks for trying!
Thanks for the suggestion. However the $game_map.shadows.group_opacity(group, opacity, time) seems to not effect the light itself, and I dont see any other script calls in the manul for it 🙁
Thanks for trying!
Found it!
I was using $game_player.drop_light() with "latern" "tourch" and other in the () section. However, when left blank, it killed the player light!
I was using $game_player.drop_light() with "latern" "tourch" and other in the () section. However, when left blank, it killed the player light!
I'm glad to hear that. However,
lucofthewind, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
If you want to add something, then use the Edit button on your post (it's down at the bottom right, near the Multiquote button) and add it.
lucofthewind, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
If you want to add something, then use the Edit button on your post (it's down at the bottom right, near the Multiquote button) and add it.
If you are using Kha's awsome lighting effects I found this method the easiest and effective. Though it might stray from what you are after, you could modify it to fit your goal.
Make two common events, name them Lantern ON and Lantern OFF then make two items, Lantern on and Lantern off
In the item effects make Lantern on call common event Lantern ON and item Lantern off call the common event Lantern OFF
In the common event Lantern ON, insert the commands below in your options.
Comment: [Light 1]
script:l = $game_map.lantern
l.change_owner($game_player)
l.set_graphic("image_torchlight")
l.set_opacity(200,20)
l.show
change items: [Lantern on],-1
change items: [Lante off],+1
Now for common event Lantern OFF copy and paste from Lantern ON and modify the following.
Comment: [Light 1]
script:l = $game_map.lantern
l.change_owner($game_player)
l.set_graphic("image_torchlight")
l.set_opacity(200,20)
l.hide
change items: [Lantern off],-1
change items: [Lantern on],+1
Go back to your item list and remove the ON and OFF from the Lantern names, this makes it look like it's the same item.
This SHOULD make your Lantern item turn on the lighting effects when selected, in effect it deletes itself from your inventory while replacing itself with the Lantern that turns itself off, they both share the same name and will take the same slot they are put into, this giving the effect that it is the same item.
Make two common events, name them Lantern ON and Lantern OFF then make two items, Lantern on and Lantern off
In the item effects make Lantern on call common event Lantern ON and item Lantern off call the common event Lantern OFF
In the common event Lantern ON, insert the commands below in your options.
Comment: [Light 1]
script:l = $game_map.lantern
l.change_owner($game_player)
l.set_graphic("image_torchlight")
l.set_opacity(200,20)
l.show
change items: [Lantern on],-1
change items: [Lante off],+1
Now for common event Lantern OFF copy and paste from Lantern ON and modify the following.
Comment: [Light 1]
script:l = $game_map.lantern
l.change_owner($game_player)
l.set_graphic("image_torchlight")
l.set_opacity(200,20)
l.hide
change items: [Lantern off],-1
change items: [Lantern on],+1
Go back to your item list and remove the ON and OFF from the Lantern names, this makes it look like it's the same item.
This SHOULD make your Lantern item turn on the lighting effects when selected, in effect it deletes itself from your inventory while replacing itself with the Lantern that turns itself off, they both share the same name and will take the same slot they are put into, this giving the effect that it is the same item.
@Skurge
This thread is for Khas Ultra Lighting script, and I don't think it works the same way as the Awesome Lighting script does.
This thread is for Khas Ultra Lighting script, and I don't think it works the same way as the Awesome Lighting script does.
Oh my mistake, well my service is done here unfortunately I don't have the script to offer any help.
Why is this under Product Announcements?
@ ksjp17: Bloody hell! Sorry about that, I got a bit to excited on solving the problem >_>
@Skurge: Hey no worries, you were just trying to help! Also, I just so happened to upgrade from awesome lights to this 🙂
@gRaViJA: According to the forum it's under
@Skurge: Hey no worries, you were just trying to help! Also, I just so happened to upgrade from awesome lights to this 🙂
@gRaViJA: According to the forum it's under
Sorry for the late response!
So, the correct way to do it is to call $game_player.drop_light.
This will make the player turn off any light he's carrying!
And for the Awesome Light Effects, Skurge solution is the best 😀
So, the correct way to do it is to call $game_player.drop_light.
This will make the player turn off any light he's carrying!
And for the Awesome Light Effects, Skurge solution is the best 😀
Hey, I tried this, but switching items with skills, but when I use the skill I get this pop-up messge and a game crash... All I'm trying to do is make a skill that illuminates an area around the player (ideally one which runs out after 100 or so steps but I haven't gotten around to figuring that part out yet). I don't want to go messing with the Game_Interpreter script without knowing what I'm doing. Any help would be greatly appreciated.

Original thread: https://forums.rpgmakerweb.com/threads/way-to-turn-off-player-lamp-with-event.44719/