[XP] Some things that i wanna know

(Sorry for the bad english :c) I wanna know some things:

About events, how i made them to not be affected by a change screen tone? And how i modify the z of an event? (For example, i wanna make the player to stay on a specific picture)

About the pictures, there's a way for remove all the pictures with maybe only a code, without making everytime "Erase Picture"? (Because I'm making a battle system by events, and I don't remember everytime every pictures that I used..)
If you want to erase all your pictures at once you should be able to do it using the following script call:
Code:
$game_screen.pictures.each do |p|
  p.erase unless p.nil?
end
Changing screen tone affects characters too, that is something the Game_Screen class handles internally. I am afraid you need a script for that.

Unfortunately I am not proficient enough with how XP handles classes so I cannot really help you with the other question. I remember that XP has a flag called "Always on TOP" but that does not work for pictures as they keep staying on top no matter if that flag is on.
Regarding screen tone, you will need to refer to Spriteset_Map. The tilemap, characters, fog, and panorama are all on @viewport1. Pictures are on @viewport2. And @viewport3 is exclusively used for screen flash events. Everything on @viewport1 will always be lower than everything on @viewport2 which is always lower than @viewport3.
i wanna make the player to stay on a specific picture
Therefore, this is impossible in the default scripts. There's no way to get a character above a picture.

how i modify the z of an event?
Without using scripts, you're limited to only using "Always on Top". Otherwise, you will need to make edits to Game_Character 1 def screen_z method. I don't recommend you do this though, especially if the goal was to only get events above pictures.

About events, how i made them to not be affected by a change screen tone?
Screen tone changes are applied to @viewport1 directly, so everything on it will be affected. As I said, characters are on @viewport1, so the only real fix would be to move them to a different viewport. But you can't--or rather, you shouldn't--do that since characters and the tilemap need to be on the same viewport (otherwise, z-order/tile priorities will no longer work). The best way to do it would be to use a script that changes the tone for the sprites individually rather than the viewport; and if you wanted to still affect the tilemap, you'd need a tilemap rewrite.
If you want to erase all your pictures at once you should be able to do it using the following script call:
Code:
$game_screen.pictures.each do |p|
  p.erase unless p.nil?
end
Changing screen tone affects characters too, that is something the Game_Screen class handles internally. I am afraid you need a script for that.

Unfortunately I am not proficient enough with how XP handles classes so I cannot really help you with the other question. I remember that XP has a flag called "Always on TOP" but that does not work for pictures as they keep staying on top no matter if that flag is on.

Thank you for the help! ^w^

Regarding screen tone, you will need to refer to Spriteset_Map. The tilemap, characters, fog, and panorama are all on @viewport1. Pictures are on @viewport2. And @viewport3 is exclusively used for screen flash events. Everything on @viewport1 will always be lower than everything on @viewport2 which is always lower than @viewport3.

Therefore, this is impossible in the default scripts. There's no way to get a character above a picture.


Without using scripts, you're limited to only using "Always on Top". Otherwise, you will need to make edits to Game_Character 1 def screen_z method. I don't recommend you do this though, especially if the goal was to only get events above pictures.


Screen tone changes are applied to @viewport1 directly, so everything on it will be affected. As I said, characters are on @viewport1, so the only real fix would be to move them to a different viewport. But you can't--or rather, you shouldn't--do that since characters and the tilemap need to be on the same viewport (otherwise, z-order/tile priorities will no longer work). The best way to do it would be to use a script that changes the tone for the sprites individually rather than the viewport; and if you wanted to still affect the tilemap, you'd need a tilemap rewrite.

There's any scripts or method for doing it? (I really need them, i don't care if i have to rewrite the entite spriteset_map etc (well, i'm not actually that great scripter..), i REALLY need it ;-; )
Thank you for the help! ^w^



There's any scripts or method for doing it? (I really need them, i don't care if i have to rewrite the entite spriteset_map etc (well, i'm not actually that great scripter..), i REALLY need it ;-; )

I think the whole point of KK20's post was to say it's not possible with any ease if at all.

tl;dr: no you can't have this
I think the whole point of KK20's post was to say it's not possible with any ease if at all.

tl;dr: no you can't have this

Yes, it's possible, i saw some other posts saying methods about doing those things on vx, so why it's not possibile on xp? -.-
Thank for the help guys, but i already found a solution.. it was so simple, i switched viewpoint1 in spriteset_map of the characters to viewpoint3 and now it works... (And maybe i will do an if or when section to it, for don't making everytime an event above a picture)

But i'm still questioning how to make an event to not be affected by the change color screen. (still sorry for the bad english 😛)
If you moved the characters to viewport3, then Change Screen Tone shouldn't be affecting any of them since it only affects viewport1.

Also, are you not using tilesets? Characters and the Tilemap need to be on the same viewport if you want characters to be behind trees for example.
If you moved the characters to viewport3, then Change Screen Tone shouldn't be affecting any of them since it only affects viewport1.

Also, are you not using tilesets? Characters and the Tilemap need to be on the same viewport if you want characters to be behind trees for example.

Okay then, anyway nope, i use only the pictures and the events, (it's a battle system on events, i'll give to you an idea telling that i'm trying to recreate the Deltarune battle system, and that method of having the events above the pictures was for the SOUL 's dodge system and for the bullets.. aaand for the screen tone thing, i needed it for making the target scene.. well, you know.. when the enemy targets someone, and then the other things becomes darker, except for the target, enemy, SOUL and the bullets)
Hm, can i ask another thing? I wanna make the viewpoint3 to show in only one specific map, what i should put for it? like an "if map" something? Because i've put a switch for activate and deactivate it, but seems it isn't working very well, maybe it's because of the update stuff of the spriteset_map.

Andrea87Sky, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


If you want to add something after you posted, please use the 'Edit' button to do so, thanks 🙂
You could add this script:
Code:
class Spriteset_Map
  alias show_vp3_switch_update update
  def update
    @viewport3.visible = $game_switches[1] # Change it to whatever switch ID you want
    show_vp3_switch_update
  end
end
Then turning on that associated game switch will make it visible; off to hide it.
You could add this script:
Code:
class Spriteset_Map
  alias show_vp3_switch_update update
  def update
    @viewport3.visible = $game_switches[1] # Change it to whatever switch ID you want
    show_vp3_switch_update
  end
end
Then turning on that associated game switch will make it visible; off to hide it.

This is not the thing that i actually wanted, but thanks.. anyway i made a new post on the script request section, so maybe someone can make directly a script for me.. (https://forums.rpgmakerweb.com/inde...-change-the-self-z-of-specific-events.108042/)

Double-post notice: Andrea87Sky
If you want to add something after you posted, please use the 'Edit' button to do so, thanks 🙂

Oh, sorry! I'll read them! And uh, if someone can, i think this thread can be closed. Because uh, i don't think there's a way for doing that by events, and i already upload a better post on the scripts requests section..

Original thread: https://forums.rpgmakerweb.com/threads/xp-some-things-that-i-wanna-know.107681/