I don't know what I did but the basic attack option for my characters is no longer usable. I even tried copying it from a new game. Any help would be appreciated.
I can't figure out why the Attack option is grayed out.
RGSSx Script SupportIf you take all the notetags out does it work?
Here are my Top 3 suspicions - #1 is the one I'd be most likely to jump at.
- Your Attack skill is given the skill type of "Combat Skill" which is not the default (the default is 'None' I believe). Make sure all of your Actors have a Feature on their Actor, Class, or Equips that allow them to use the "Combat Skill" skill type. Or, try changing Attack's type to None. Save, and try again.
- A script could be changing the conditions for a skill to be usable. Disable any script which deal with Skills, especially Skill Conditions, then Save and then try again.
- This is unlikely, but it's possible that your core script (something like Game_Battler or Scene_Battle), which contains a method to determine which skill is the 'Attack Skill', was changed accidentally. Maybe do a Search All (Ctrl + Shift + F I think) for attack and see if anything stands out as the method to define what skill is considered the "Attack" when used from the menu. Make sure it still returns 1, not some other number.
Nope. Tried that.
Yeah, I tried switching it to none. Didn't change anything. I haven't added any new scripts in a long time. And this is a recent problem. I don't mess with the core scripts. The custom scripts are a big enough pain already. i used Ctrl + Shift + F but don't know anything about code. So I've added screenshots.
Are any of your scripts doing anything with attack_skill_id?
I have Yanfly Engine Ace - Weapon Attack Replace v1.01 in scripts. But it has DEFAULT_ATTACK_SKILL_ID = 1
Have you added any new scripts to the game between now and the last time attack worked for you?
nope. I moved some files around.
Assuming you're not using any paid scripts, are you able to zip the project up and upload it somewhere? If you're not well-versed in code it'd probably be quicker for me to just take a look myself and figure out where it's failing the enable test.
I have it uploaded on MEGA.nz. I can send you a PM with the link.
The problem is weapon attack replace. Your character is equipped with a Crossbow, which has <attack skill id: 171> but 171 doesn't exist. The highest skill in your database is 150.
Oh, I forgot I replaced the basic attack. I just recently cut out some skills and put them in alphabetical order. It's working now so thank you.
You had that you are a scripter. Can you help me with another small scripting issue?
You had that you are a scripter. Can you help me with another small scripting issue?
I can certainly try, what do you need?
Moved to: RGSSx Script Support
You should have said right at the very start that you were using a script, and which one.
As this issue is resolved, I am going to close the thread. Please start a new thread for your other issue.
You should have said right at the very start that you were using a script, and which one.
As this issue is resolved, I am going to close the thread. Please start a new thread for your other issue.
Original thread: https://forums.rpgmakerweb.com/threads/i-cant-figure-out-why-the-attack-option-is-grayed-out.134509/