Help using Hime_ActorBattleCommands

Status
Not open for further replies.

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
121
Reaction score
16
First Language
English
Primarily Uses
RMMV
I want to hide the 'Passive' command for all my actors in battle-only.

I see I can use this?

hide_actor_command(ID, SYMBOL) so it would appear as hide_actor_command(1, Passive)
But I'm unsure of where exactly this is to be put??
 
Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
554
Reaction score
229
First Language
english
Primarily Uses
RMMV
yanfly's skill core plugin has <Hide in Battle> and <Hide in Field> notetags

same plugin also has <Hide if Learned Skill: x> which says it "Will hide and disable this skill if skill x has been learned." so just playtest it little bit to see if they can stack normally or if you need this notetag as well.
 

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
121
Reaction score
16
First Language
English
Primarily Uses
RMMV
yanfly's skill core plugin has <Hide in Battle> and <Hide in Field> notetags
I understand this and am utilizing this already.

I want to hide the COMMAND for the Passive skills menu during battle-only, however.
 

Anyone

Veteran
Veteran
Joined
Aug 24, 2019
Messages
237
Reaction score
329
First Language
German
Primarily Uses
RMMV
I want to hide the 'Passive' command for all my actors in battle-only.

I see I can use this?

hide_actor_command(ID, SYMBOL) so it would appear as hide_actor_command(1, Passive)
But I'm unsure of where exactly this is to be put??
Those are script calls. Page 3, second to last, right above "Plugin Command."

They're meant as a way to directly manipulate the properties of the commands.
To hide them in battle, you'd have to fire off a setup event at the start of every battle that executes the script. (Which is direct javascript)

If you don't want to make a setup event at the beginning of every combat turn for every troop you design, you can use Yanfly's base troop events:

That allows you to make a "basic template" that is called for and applies to every other troop as well.
Use that to make a turn 0 one-off event that launched the script call to disable the commands right at the beginning of combat and before it begins.

And that should be it.

Alternatively you can use a utility common event plugin to launch a common event executing the script at the start and the end of every battle.

This, however, requires some javascript know-how since yanfly hasn't included the battle start and battle exit states.
With a bit of copy-past you can do it however, but I'm not - per yanfly's terms - allowed to give you my version of the plugin that includes those changes.

To be able to trigger a battle start event you need to add a parameter near the top:

JavaScript:
 * @param Battle Start Event
 * @parent ---General---
 * @type common_event
 * @desc Run this common event each time the player starts a battle.
 * Set as 0 if you do not wish to run a common event.
 * @default 0
In the "Yanfly.Param.UtilCommonEvents = {" function you need to add the line:
JavaScript:
battleStart: Number(Yanfly.Parameters['Battle Start Event']) || 0,
Under "Game System" add this function:
JavaScript:
Yanfly.UCE.Game_System_onBattleStart = Game_System.prototype.onBattleStart;
Game_System.prototype.onBattleStart = function() {
  Yanfly.UCE.Game_System_onBattleStart.call(this);
  if (Yanfly.Param.UtilCommonEvents['battleStart'] > 0) {
    $gameTemp.reserveCommonEvent(Yanfly.Param.UtilCommonEvents['battleStart']);
  }
};
Note that you'd use battle won and battle escape common events to activate the command again, and the battle start common event to hide it.
For losing you'd have to manually launch the script in the losing condition event bracket. (if the player can lose)

I'd recommened the general troop event, though. It's easier.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
554
Reaction score
229
First Language
english
Primarily Uses
RMMV
you dont need a skill type in database for passive skills. once learned they are just always active even after change to a class that cannot use that skill type.
if you are using a class changing system then just make the passive state also have a <passive condition> tag that checks current class, if you dont want all passive skills stacking up by endgame.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,838
Reaction score
5,222
First Language
Dutch
Primarily Uses
RMXP
@Zakarijah Next time, just let us move this thread, instead of making a new one.

Closing as this is a duplicate.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top