How can I have an event be above a star tile but below the character?

How can I have an event be above a star tile but below character?

The reason I want to do this is because I'm making a village of treehouses, when the player goes behind the treehouse, the treehouse and the door is above them, and an invisible event on the top of the ladder is same level so they can't go on it. But if they climb the ladder to the tree house a switch turns on which changes the priority of the top of the ladder to below the character and makes the door interactable.

It works okay but I have to make the door above the player so its visible. If I make the switch change the door to same level as character like I was planning on doing, it goes behind the star tile.

I've looked around for layer plugins, but I only see plugins that change layers of pictures, not individual events. Does something like this exist already or is there a way to do it without a plugin that I might not be aware of?
There's a Triacontane plugin that lets you change the display priority of event graphics. It's in Japanese so if you're using Chrome you can right click the page and tell it to translate it


You can use notetags
* <CGPriority: (page number), (priority)>
* Set the display priority when the specified page is enabled.
* Values from 1 to 9 can be set.
*
* Example: <CGプライオリティ:1,6> or <CGPriority:1,6>
*
* *Each priority value
* 0: Lower tile
* 1 : Below normal character
* 3: Same as normal character
* 4: Upper tile
* 5 : Above normal character
* 6 : Shadow of the airship
* 7: Balloon
* 8 : Animation
* 9: Map touch destination (the one that glows white)

You should also be able to do a direct script call
this.character(ID)._customPriority = 3;

where ID is the event's ID and 3 is the layer
Awesome! Thanks for the quick reply and solution! Gonna look into it now.



EDIT:

This looks like what I'm looking for...
* <CG priority: (number of pages), (priority)>
* Set the display priority when the specified page is enabled.
* Values from 1 to 9 can be set.
*
* Example: <CG Priority:1,6> or <CGPriority:1,6>
*
* *Each priority value
* 0: Lower tile
* 1 : Below normal character
* 3: Same as normal character
* 4: Upper tile
* 5 : Above normal character
* 6 : Shadow of the airship
* 7: Balloon
* 8 : Animation
* 9: Map touch destination (the one that glows white)


But it doesn't seem to work...
I put <CG Priority:2,6> in Notes, that didn't do anything so I tried <CG Priority:2,0>, just to see if it would go below everything, it didn't. Tried putting the plugin at the top and at the bottom of the list too, still nothing.
That's a translation quirk, there's no space. It's either
<CGプライオリティ:1,6> or <CGPriority:1,6>

Also could you try the direct script call?
You should also be able to do a direct script call
this.character(ID)._customPriority = 3;

where ID is the event's ID and 3 is the layer
That's a translation quirk, there's no space. It's either
<CGプライオリティ:1,6> or <CGPriority:1,6>

Also could you try the direct script call?
Using <CGPriority:1,3> worked, though I only did that to make sure it was working... it did go under the tree, so I know its working now.

I was fighting with the translator so I didn't realize you had already said how to do it before (though I did find a translator without limits - string translate) It was translating english code to different words, so just had to translate the help file and not touch the code.. that's still well above Google's 3500 character limit though.

Anyway, <CGPriority:1,4> sounds like what I was looking for, but when I try it, its above the character.

The direct script call does work to answer the question though.
If changing the event's image layer doesnt work you might have to do something like use a tile changer to change the tile's layer instead, or swap out the tile with one that looks the same but has different settings

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-have-an-event-be-above-a-star-tile-but-below-the-character.166786/