[VX Ace] Making Parallax Layers/Events Glow in the Dark

Hello everyone! This is a bit strange, but it shouldn't be too bad, hopefully. I'm using Galv's Layer Graphics, ...and a ton of other scripts that really shouldn't be relevant. I can screenshot the whole list or provide a demo if need be, though.

I want to make it so that one layer 'glows'... realistically meaning that I want the Tint Screen command to not affect this layer. If this is doable with certain events as well, it would be ideal. Now, I *could* make it so that the viewport on this layer/event is higher than that of the tinting effect. It would require me to figure out the proper scripting commands, but it should be possible, yes? Since the layer I want to 'glow' is above everything else on the map, doing it this way shouldn't be a problem. However, this IS a problem for events, because I need them to be able to interact with the other layers as normal (covered up by walls they walk behind, for example).

I am aware a script for this existed for VX, here. However, simple testing did not result in anything interesting. It simply didn't work. I expected that result anyway, but sometimes you get lucky with these older scripts, you know?

If you have any information on how to do this, please let me know. Thanks for any help you can give with this. 🙂
That script is close. There are a few changes for vx ace.
Remove the Game_Event part and use this
Ruby:
class Game_Event < Game_Character
  #--------------------------------------------------------------------------
  # * Setup
  #--------------------------------------------------------------------------
  alias coz_ginds_ge_setup setup_page
  def setup_page(new_page)
    coz_ginds_ge_setup(new_page)
    comment = ''
    @page.list.each_with_index { |cmt, i|
      if cmt.code == 108
        comment += @page.list[i].parameters[0]
      end
    }
    if comment[/\\GLOW_IN_THE_DARK/i] != nil
      @glow_in_the_dark = true
    end
  end
end
Although it's not 100% great. If you have an event without the tag and then with, it will only take effect after doing something like entering the menu and returning.
Okay, so I tested it out in a blank project, because unfortunately it doesn't seem to get along with all my other scripts. I mean, it doesn't get along with one script definitely, and maybe others.

Anyway, I tested it, and it worked like you said after replacing the section of code. They barely glow at all, though.. You would think they'd look lit up, like they're not covered in darkness, but they aren't. It seems to just change the sprite so that its pixels are slightly whiter, while allowing it to be tinted anyway.

1633578242316.png


Unfortunately, this isn't what I need, so I guess I misunderstood what this script did. I apologize. I mean to have events that literally aren't effected by the tinting. Not like a lighting script, where light events light up the area around them- I already use one of those. And definitely not like this script, where... you know, I'm not entirely sure what this script is doing, but it's not correct whatever it is, haha. The event should look lit up, but ONLY the event. To be a bit clearer, the event would look the same with and without the tint effect being on. I'm not sure if Cozzie's script here can be edited to do that, but it's what I'm looking for.

My lighting script is Zeus81's Lights and Shadows, in case that's needed. I suppose I should have said it from the start, seeing how this involves lights, sort of.
Honestly I don't understand you, though you've looked for what @Roninator2 posted.
So you need a glowing square on event place?
this works how you want
It works, despite my impressive number of scripts! There's a small issue where it causes *every* event to glow, but that can be fixed be issuing a script call pushing the re-tint script call onto every event, then just un-tinting the ones I want to glow manually. I don't know why it works like this, but whatever, it's usable.

@fizzly I meant this. Notice the one sparkling event isn't bright? That's how it looks by default.
1633628221219.png


Now, onto making the layer appear on top of the tinting viewport. I had a partial command by Shaz to do this, but I had to modify it to work for layers since it was for events or something. Since it only ever caused my game to crash, I deleted it since I had/have no idea how to code properly. Unfortunately, I cannot find the page with that viewport-changing command again, so we might have to start from scratch.

Also, I'm sorry this has become more of a Script Request thread, rather than a Script Support. I really thought we could do this with the existing scripts I already had.
I don't know why it works like this,
Seems to be a slight flaw in the script. I'm going to look at the demo and see.
Okay. I hope it's going better on your end than mine. Turns out you can't issue the script call via a move route via a script call... because you can't use it in a move route script call in the first place. Why? I don't know. But I suspect it's to do with the fact that the script's methods are in Game_Interpreter, not Game_Character. I have no way of knowing whether this is correct or not of course, but it's just a thought.

...Don't actually listen to me I have no idea how this code stuff works I'm mostly just an artist.
I have no way of knowing whether this is correct or not
Yes, doesn't work how I would want it too either.
I would say contact dsiver144 and have him update the script.
I needed to contact them anyway, for the commercial license. Thanks for all the help. 🙂

...Now if only I could find that command...

Hey, I found it! It was by Shaz, and it's actually a scriptlet. The code was
Ruby:
class Game_CharacterBase alias shaz_vp_init_private_members init_private_members def init_private_members shaz_vp_init_private_members @viewport = 1 end def set_viewport(value=1) @viewport = value if value.between?(1,3) end def viewport @viewport ? @viewport : 1 endendclass Spriteset_Map alias shaz_vp_update_characters update_characters def update_characters shaz_vp_update_characters @character_sprites.each {|sprite| sprite.viewport = [@viewport1, @viewport2, @viewport3][sprite.character.viewport - 1] } endend

And the command to change the viewport was "$game_map.events[id].set_viewport(2)"

Any chance we can modify this code to work for map layers instead of events?

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-making-parallax-layers-events-glow-in-the-dark.141069/