I just need some guidance from someone that knows a decent amount of coding knowledge and can answer me, since google has failed me for the last three hours, about the shadow/light source part of Galv’s Character Effects V.2.1 http://galvs-scripts.com/galvs-character-effects/.
Can anyone with a modest knowledge of RGSS3 let me know if the light source part of the script can be applied to the Player/actor/character as well as/instead of the events? So that it is the player/actor/character that casts shadows?
I am not looking for a lantern script/event; i have that. But even years ago back when VX started and when i started other projects i wanted a lantern/flashlight with an effect that casted shadows on objects that stayed with the hero, but again, to no avail. I particularly feel this script can do that, but my very limited knowledge of scripting only allows me to identify where in the script the magic might happen.
To iterate, the script does this: (makes an event a light source)

I want it to do this: (make the player be the source of light of which it casts shadows)

But also for the effect to be with the player/actor/character when the player moves. Note that the script already allows for that to happen to any event through a script call on parallel process. I suspect that the place to work on might be in lines 358~369 since that's where the shadow source is defined and where I THINK the position for the 'shadow source' is handed out, but like I said, I have limited knowledge.
Lines 358-369 in which I THINK the position for the 'shadow source(light source)' is handed out and in where I THINK most of what I want can be added.
def shadow_source(*args,shad_id) shadsource = [*args] if shadsource.count == 1 $game_map.light_source[shad_id] = [$game_map.events[shadsource[0]].real_x, $game_map.events[shadsource[0]].real_y] elsif shadsource.count > 1 $game_map.light_source[shad_id] = shadsource else $game_map.light_source = [] end endI'd really appreciate if anyone can tell me if its even possible within the script, or if perhaps there's a script out there that already does this? (i've searched extensively, but i know there are corners some go that others don't)
I apologize if this isnt the right place for this thread. I felt this was more support for an existing script than a request for a new one.
Thanks in advance for any help.
EDIT:
This has been answered elsewhere, answer:
Use a parallel process that contains a script call:
$game_map.light_source[0] = [$game_player.real_x, $game_player.real_y]This will make the light source appear on the player.
THREAD CAN BE CLOSED