(Skip to the last paragraph if you want to understand what the problem specifically is). Basically in my project, there are large of amount event interactions that rely upon the player "selecting" an actor of their choice out of the available party and that selected actor's stats being used to determine the outcome of an event. Like a wooden door that requires someone with 10+ Strength (ATK) to knock down so you can gain access to the room, a steel door that requires 40+ Strength, books that require 25+ Intelligence to read, an NPC you can convince to steal from a store if you have 20+ Charisma, ect. The common event for this system is already finished; It assigns any chosen actor's 6 (10 if you include Max/Current HP/MP) stats to neat variables ready to be passed on to unique events for processing. The problem is actually CHOOSING the actor from the player's perspective. Originally, I just gave everyone a skill called "Interact" that would just give the user a state called "Interact_Flag" and would then call a common event to pass the stats of whoever has the state into variables, before resetting the state (removing the state from everyone/anyone in the party). It worked fine, but I don't want the player to have to go into the menu, select an actor's skills, and select "Interact" everytime they want to do something (because they are a lot of the aforementioned selection events in game).
I discovered @NinjaChicle Party Member select script, which allows you to create events in which you visually select an actor, and then bind that actor's ID to a variable. It seemed perfect for what I was trying to accomplish, but I quickly ran across some issues.
forums.rpgmakerweb.com
Like in a common event, if I call the party member select script first, and then make a conditional branch to check if the selected actor's ID is 1, it doesn't seem to actually assign the selected actor's ID to the variable until AFTER the conditional branch check was made, so to get results I have to run the common event twice (this happens even when I use wait commands as per NinjaChicle's instructions.
Galv also has a script that does this but it's incompatible with several mission-critical scripts I have, and will cause an error message before the game even reaches the title screen.
galvs-scripts.com
So basically, I've thought of an alternate way to "select" an actor. I have a common event which can be called from the menu. When the common event is triggered, it will add one instance of an item that places the Interact_Flag state on it's user, and it will take the player directly to the screen where the item is already selected and is ready to be used:
But I don't know how to call a specific item use scene directly. There must be a script call like "use_item_ID[X]_actor_select" or something. Does anyone know how do this or if this script call exists?
I discovered @NinjaChicle Party Member select script, which allows you to create events in which you visually select an actor, and then bind that actor's ID to a variable. It seemed perfect for what I was trying to accomplish, but I quickly ran across some issues.
Party Member Select Script
Party Member Select Script by NinjaChicle Introduction This script lets you select an actor from your party and save their ID in a variable. Also saves the name of the actor in a different variable too if you want to. How to Use Put this script above Main. Then put...
forums.rpgmakerweb.com
Galv also has a script that does this but it's incompatible with several mission-critical scripts I have, and will cause an error message before the game even reaches the title screen.
Party Select
FEATURES Works like the “Select Key Item” event command, except instead of key items it displays actor faces. Choose to either display only members in your party or to display a list of…
So basically, I've thought of an alternate way to "select" an actor. I have a common event which can be called from the menu. When the common event is triggered, it will add one instance of an item that places the Interact_Flag state on it's user, and it will take the player directly to the screen where the item is already selected and is ready to be used:
But I don't know how to call a specific item use scene directly. There must be a script call like "use_item_ID[X]_actor_select" or something. Does anyone know how do this or if this script call exists?