Backstory:
I am currently using Yanfly's Ace Equip Engine and Battle Command List. I have armors that have Add Skill features on each and I am using the Ace Equip Engine to have, just for descriptions sake, 10 equipment slots available. The idea is for each armor item equipped, the actor gets access to that skill. That is working perfectly.
And as for the Battle Command List, I am able to get specific skills to populate the battle menu's just fine.
What I'm looking for:
I need some advice on how to best to tackle this problem. I would like to get this scripted in Ruby and not use events if possible.
What I want is for each skill that is "equipped" when the armor with that Add Skill feature is equipped to an actor, is to then have those skills show up in the battle menu. So then when I have armor with a spell, say "Fireball", equipped, my options in battle are something like:
Attack
Items
Fireball
Escape
Or something of the sort.
Now with that done, I want the skills available to be random. So If an actor has access to 10 spell currently, using the rand command at the start of a battle, it will randomly select a skill from 1-10 (or perhaps 0-9 if using an array), and display one of those, not all 10 spells. Once that skill is used, the script will run rand again and pick another number, thus placing the new spell in the place of the old spell. If the rand picks a number already used that battle it will rand again until all numbers have been used.
I suppose a switch would be perfect, and perhaps and array with variables to keep track of which numbers have been used by individual actors.
If using switches within events would be the best way I would love some tips, but again I feel like this would best be handled in straight code.
Thanks!
I am currently using Yanfly's Ace Equip Engine and Battle Command List. I have armors that have Add Skill features on each and I am using the Ace Equip Engine to have, just for descriptions sake, 10 equipment slots available. The idea is for each armor item equipped, the actor gets access to that skill. That is working perfectly.
And as for the Battle Command List, I am able to get specific skills to populate the battle menu's just fine.
What I'm looking for:
I need some advice on how to best to tackle this problem. I would like to get this scripted in Ruby and not use events if possible.
What I want is for each skill that is "equipped" when the armor with that Add Skill feature is equipped to an actor, is to then have those skills show up in the battle menu. So then when I have armor with a spell, say "Fireball", equipped, my options in battle are something like:
Attack
Items
Fireball
Escape
Or something of the sort.
Now with that done, I want the skills available to be random. So If an actor has access to 10 spell currently, using the rand command at the start of a battle, it will randomly select a skill from 1-10 (or perhaps 0-9 if using an array), and display one of those, not all 10 spells. Once that skill is used, the script will run rand again and pick another number, thus placing the new spell in the place of the old spell. If the rand picks a number already used that battle it will rand again until all numbers have been used.
I suppose a switch would be perfect, and perhaps and array with variables to keep track of which numbers have been used by individual actors.
If using switches within events would be the best way I would love some tips, but again I feel like this would best be handled in straight code.
Thanks!