I have a short script that replaces a classes main attack with a skill (so my Rat will Bite instead of using a standard attack).
Is there a simple addition I can make so that it changes the word "Attack" in the battle menu to the skill name?
Many thanks!
Thanks for the answer.
I only want to replace it for certain classes, so where do I add this?
When you say replace Vocab::attack by the skill name, will the script read
def add_attack_command
add_command($data_skills[11].name, :attack, @actor.attack_usable?)
end
?
Sorry that I need the idiot's guide...
no,
$data_skills[attack_skill_id].name
attack_skill_id is the function that returns the ID in question, for every actor (only, each actor usually uses the same skill, id 1)
if you want to change it for every class, you should have every class return a different result for that call, which you can add either as a separate script (directly modifying that function) or as a note tag, having a function that goes pick that tag up from the actor and pass it to that function.
which, if you want *this* for your setup, I guess you already have, otherwise you'd be using the standard attack.
......anyways,... whatever you have, you set it to send that skill ID, to the function that will be called from add_command.
$data_skills[id].name is the way to pick it up directly from that command.... if you want it from somewhere else, that's where you pass the resulting string.
ok, I'm sorry but I still don't get it.
I want to change the attack text for certain classes. I need to know where to put this script and what I need to replace in order for it to affect only those classes.
Specifically, it is class ID 11 and 12 - I want their Attack text replaced with the name of Skill 11 in the skills menu.
Should i add this as a separate script below materials? what do I need to change for it to work?
Like I said, sorry for need ing the idiots guide.
I appreciate your help! 😀
This is the script I'm using to change the default attack: (should I add it here? and how?)
The script i showed you here was to change the default attack of my companions to a skill.
Now I need to change the word 'Attack' in the menu to the name of the skill. I tried replacing the script i had with yours and it didn't work. This is what i have now, but it still says 'Attack'.
I feel like an idiot because you clearly know what you're talking about and I'm doing it wrong! 🙁