Hello all!
I was wondering if there is a way to possibly edit the Yanfly Button Common Event plugin to achieve the effect I want. Or if there's a better solution for this, that would also be awesome!
My game has multiple actors in the party that the player can switch between. Each actor has an ability to help traverse the map. As the player gathers more characters, they're able to unlock more areas of the map with the different actor abilities. For example, one character can use the hookshot (from Legend of Zelda).
My current setup is to use Yanfly's Button Common Event plugin to call a common event to trigger the hookshot ability. But if I want to have a different character use the same button, the plugin doesn't allow me to dynamically set the common event that say, button "f" calls.
If I wanted to have "f" be the button that calls actor's special map traversal abilities, how would I go about doing that?
For example:
If Actor 1:
Then Special Ability Variable = 1
If Actor 2:
Then Special Ability Variable = 2
.
.
.
If Special Ability Variable = 1:
Then assign Common Event 14 to YEP_Button_Common_Event_Plugin "f"
If Special Ability Variable = 2:
Then assign Common Event 15 to YEP_Button_Common_Event_Plugin "f"
Is that even possible without a tremendous amount of work? Is this the best way to accomplish this?
Thank you for your time if you see this!
I was wondering if there is a way to possibly edit the Yanfly Button Common Event plugin to achieve the effect I want. Or if there's a better solution for this, that would also be awesome!
My game has multiple actors in the party that the player can switch between. Each actor has an ability to help traverse the map. As the player gathers more characters, they're able to unlock more areas of the map with the different actor abilities. For example, one character can use the hookshot (from Legend of Zelda).
My current setup is to use Yanfly's Button Common Event plugin to call a common event to trigger the hookshot ability. But if I want to have a different character use the same button, the plugin doesn't allow me to dynamically set the common event that say, button "f" calls.
If I wanted to have "f" be the button that calls actor's special map traversal abilities, how would I go about doing that?
For example:
If Actor 1:
Then Special Ability Variable = 1
If Actor 2:
Then Special Ability Variable = 2
.
.
.
If Special Ability Variable = 1:
Then assign Common Event 14 to YEP_Button_Common_Event_Plugin "f"
If Special Ability Variable = 2:
Then assign Common Event 15 to YEP_Button_Common_Event_Plugin "f"
Is that even possible without a tremendous amount of work? Is this the best way to accomplish this?
Thank you for your time if you see this!