As the title says... can't seem to find it anywhere. Any info provided will be of much help.
Anyone knows the script code for event priority???
RPG Maker MV SupportWhat are you trying to do, and why are you trying to do it via script rather than using event commands? Your question could be interpreted in several different ways.
Hello,
I have an NPC (event), that has the same priority ( "same as characters"), that is below a tree (Tile).
When I run a dialog between characters (series of commands), I need the NPC to jump over the player, but because the NPC has the same priority as the player, it will no jump above the player but under it. It looks weird. The way I command the NPC to jump over the player is trough "set movement route" command. I know I can call scripts from "set movement route". The problem is, The NPC its hiding from the actual player visibility under a tile tree and then it jumps over the player character. I know how to do this trough eventing but I was wondering if there is an script call that can change the priority of the NPC from "same as characters" to "above characters".
Any information will be of much help.
I have an NPC (event), that has the same priority ( "same as characters"), that is below a tree (Tile).
When I run a dialog between characters (series of commands), I need the NPC to jump over the player, but because the NPC has the same priority as the player, it will no jump above the player but under it. It looks weird. The way I command the NPC to jump over the player is trough "set movement route" command. I know I can call scripts from "set movement route". The problem is, The NPC its hiding from the actual player visibility under a tile tree and then it jumps over the player character. I know how to do this trough eventing but I was wondering if there is an script call that can change the priority of the NPC from "same as characters" to "above characters".
Any information will be of much help.
Why not use self switches and change the priority as needed? maybe im not understanding the full problem but that seems like the eaisest way to do it.
I know how to do it trough eventing but I'm making a puzzle game so in the long run, scripts will be a life saver little gifts... I know that for ace was "$game_map.events[eventIID].instance_variable_set🙂@priority_type, int)".
in the earliest levels of my game eventing is okey but when I get to the last few levels its going to be a nightmare doing it trough eventing... Don't ask me why just go with it... anyway...
I just wish I knew the one for MV... I hope someone has it...
in the earliest levels of my game eventing is okey but when I get to the last few levels its going to be a nightmare doing it trough eventing... Don't ask me why just go with it... anyway...
I just wish I knew the one for MV... I hope someone has it...
this.setPriorityType(n);
n is equal to
0 = Below
1 = Same
2 = Above
n is equal to
0 = Below
1 = Same
2 = Above
Just tried this in an event and it says it's not a function.
Any idea how else this might be changed?
Original thread: https://forums.rpgmakerweb.com/threads/anyone-knows-the-script-code-for-event-priority.48214/