[SOLVED]Have a skill randomly use another skill

Status
Not open for further replies.

NinjaKittyProductions

Professional Murder Hobos
Veteran
Joined
Jul 9, 2013
Messages
484
Reaction score
467
First Language
English
Primarily Uses
RMMV
Hey gamers and developers,

I believe this is the right spot to post this, if not I apologize ahead of time. I am looking for a plugin or a non-plugin way to have a skill that randomly uses another skill from a selection of skills. Let me give an example:

You have a skill called "Tools:. When you use Tools, it will use one of 4 skills randomly: Power Wrench, Flamethrower, Combat Drill, or Spark Cannon.

For the life of me I cannot figure out how to get the "Tools" skill to use one of the other four when used. I have tried common events but I probably did not do it right.

Any and all help would be greatly appreciated.
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,923
Reaction score
534
First Language
English
Primarily Uses
N/A
You can do this with a common event. Have a variable set a number between 4 numbers like 0-3. Have four conditinal branches seperated Below the randomly set variable that check if the same variable is a certain number, you do not need an else branch. Then, just put force action in each of the conditinal branches, and boom! you have the effect you want. If you want to be able to choose the target, just have the skill target something and in the force action command select "last target"

Edit: the tool skill doesn't need a formula, just the skills it connects to. Also, be sure to connect the skill to the common event
 

NinjaKittyProductions

Professional Murder Hobos
Veteran
Joined
Jul 9, 2013
Messages
484
Reaction score
467
First Language
English
Primarily Uses
RMMV
Thanks everybody for the replies. I was able to figure it out finally. I ended up using the information that @tale provided along with @Oddball and made a common event that ran when I used the skill. Thanks again to everybody that replied. It really helps out. ^_^
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top