Yurii

Villager
Member
Joined
Apr 10, 2016
Messages
21
Reaction score
2
Primarily Uses
I'm trying to delete default battle commands (attack or guard or item) from specific classes. E.g. Barbarian does not have Guard, and Priest does not have Attack.


Actually, I can disable them via class Trait - Seal Skill, but that would be rather rough, as these options will appear although grey-outed.


So, I am trying to add an if-condition into the function Window_ActorCommand.prototype.makeCommandList. E.g., if ($gameActors.actor(actorId).currentClass().id = 1)


...and I add any of 4 commands (attack, skill, guard, item) in any sequence.


However, I am stuck with how to define/alias actorID whom a player will be issuing a command in battle screen.


Kindly please advise.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
I think you may want to use BattleManager.actor() instead :)
 

Yurii

Villager
Member
Joined
Apr 10, 2016
Messages
21
Reaction score
2
Primarily Uses
I think you may want to use BattleManager.actor() instead
Oh my god! I completely forgot about rpg_scenes.js!!!!


if (BattleManager.actor().currentClass().id == 1)


this solved everything!


Thank you so much!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,238
Members
137,608
Latest member
Arm9
Top