greensdream

"GREEN'S DREAM" developer page
Veteran
Joined
Jul 15, 2017
Messages
62
Reaction score
27
First Language
English
Primarily Uses
RMMV
I've got a character in my game who cannot remember their previous abilities. I'd like a skill that can recall one of a set number of random skills. Kind of like Tellah's "Recall" skill from Final Fantasy 4 or the "Mystery" skill from Space Funeral.

I'd like to only have one ability listed for the actor, yet I'd like for it to do one of four predetermined skills. Let's name this skill "Rouse Memory" for the sake of this thread, and I dunno, it will make the player do either "Fire," "Ice," "Earth," or "Wind."
 

Riku_Masamune

Veteran
Veteran
Joined
Aug 23, 2016
Messages
50
Reaction score
19
First Language
English
Primarily Uses
RMMZ
You'd have to create a plugin that'd add that skill in, because even if you add a skill in the database, it opens a menu. But since you don't want the player to chose, it'd have to be a plugin... Though... if you just made it an ability you could: Make the spell and have it open a common event that would chose from variables to chose what to do on a certain variable chosen.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,853
Reaction score
5,424
First Language
English
Primarily Uses
RMVXA
The best way would to use a "Metronome Skill" type of plugin, like this one.

Since you only need 4 skills to choose from, it would also be feasible to do this without a Plugin: Have your Rouse Memory skill do nothing except play a Common Event, and that Common Event would pick a random number 1 through 4, and if it's 1, the character uses the Fire Skill (via Force Action), if 2 they use the Ice Skill, etc.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,120
Reaction score
8,000
First Language
German
Primarily Uses
RMMV
or you could simply have a mystery skill call a common event, in that common event use control variable to randomly select one other skill to be used in force action.

EDIT: ninja'ed
 

greensdream

"GREEN'S DREAM" developer page
Veteran
Joined
Jul 15, 2017
Messages
62
Reaction score
27
First Language
English
Primarily Uses
RMMV
Since you only need 4 skills to choose from, it would also be feasible to do this without a Plugin: Have your Rouse Memory skill do nothing except play a Common Event, and that Common Event would pick a random number 1 through 4, and if it's 1, the character uses the Fire Skill (via Force Action), if 2 they use the Ice Skill, etc.
You're absolutely right, this is what I'm trying to accomplish, but Variables are one of the tougher concepts for me to wrap my head around. Since Variables are so open-ended, it's hard to find a tutorial that explains them in a way that applies to what I'm trying to accomplish...

EDIT: I figured it out! In "Control Variables," I Set the Rouse Memory Skill to a Random value of 1-4. Then I used four "Conditional Branch"es to Force Action depending on the value it picks. (I also made sure to reset the value back to 0 after the Skill is used.) Thanks for all the help!
 

Attachments

  • Screen Shot 2021-01-23 at 11.53.28 AM.png
    Screen Shot 2021-01-23 at 11.53.28 AM.png
    448 KB · Views: 4
Last edited:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,853
Reaction score
5,424
First Language
English
Primarily Uses
RMVXA
You're absolutely right, this is what I'm trying to accomplish, but Variables are one of the tougher concepts for me to wrap my head around. Since Variables are so open-ended, it's hard to find a tutorial that explains them in a way that applies to what I'm trying to accomplish...

EDIT: I figured it out! In "Control Variables," I Set the Rouse Memory Skill to a Random value of 1-4. Then I used four "Conditional Branch"es to Force Action depending on the value it picks. (I also made sure to reset the value back to 0 after the Skill is used.) Thanks for all the help!
Yup, on first blush your eventing looks perfectly correct to me. Glad you got it working!
 

Latest Threads

Latest Posts

Latest Profile Posts

Jatopian wrote on war40k's profile.
What did you find for your plugin request?
Progress on my game for RSE is almost done! I should be able to release it next week.
Pfft! If other people would stop replying to threads, I could DOMINATE the Latest Posts box!
After so many hours of debugging, losing data to crashes, and slight adjustments.
BlackJack now deals cards perfectly! Time to adjust the background and implement the game logic so you can actually play it.BlackJack.png

Forum statistics

Threads
109,062
Messages
1,041,747
Members
141,555
Latest member
japanjacksin
Top