RPG Maker MV Script Call List

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
Does anyone know the script call to get an actor's current experience?
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
Can anyone point me to checking an Enemy Battler's HP? Would it be..

Code:
$gameTroop.members()[enemyIndex].Hp;
?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
The hp is case sensitive. Not Hp, but hp.
Otherwise the code is correct.
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
The hp is case sensitive. Not Hp, but hp.
Otherwise the code is correct.
Thank you!

Edit: Another silly question. What's the MV equivalent to:

Code:
SceneManager.scene.log_window.add_text("'string")
SceneManager.scene.log_window.wait_and_clear
I tried this, but it caused an undefined error:

Code:
Window_BattleLog.push('addText', "string");
 
Last edited:

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
Sorry for the double post, but I've still got a couple questions regarding the battle log.

I've figured out that the proper call is similar to:
Code:
SceneManager._scene._logWindow.addText("String")
But, I'm having issues with this. It will give way to the next incoming line without any real sort of pause, so then I tried the _logWindow.wait command, but it isn't an ideal fit either. Is there anything that is effectively the same as the old .wait_and_clear?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
You can use normal text tags to influence the text. So \c[x] changes color, etc. Which means \. puts 0.25s pause and \| puts 1s pause.
Or you could call a wait command through script. No need for any wait mechanisms.
For clearing the battle log use
SceneManager._scene._logWindow.clear();, however if you use it outside of the battle, it will crash your game according to
https://forums.rpgmakerweb.com/inde...g-message-via-common-event.77286/#post-723611

And I am not sure if you need to apologise for the double post, because it is against forum rules, but there are no alerts regarding message edits, so I didn't see you asked something till you double posted :D
 

Tea's Jams

I'm human
Global Mod
Joined
Mar 28, 2017
Messages
1,039
Reaction score
2,578
First Language
English
Primarily Uses
RMMZ
Is there a script call to add a skill to the party command window in battle?
 

Tea's Jams

I'm human
Global Mod
Joined
Mar 28, 2017
Messages
1,039
Reaction score
2,578
First Language
English
Primarily Uses
RMMZ
I would like to add a skill from my list in system settings to the first command window in battle.
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
@just1witness That's not just one scriptcall, that would require a small plugin. And even then it would not be that easy.
 

Tea's Jams

I'm human
Global Mod
Joined
Mar 28, 2017
Messages
1,039
Reaction score
2,578
First Language
English
Primarily Uses
RMMZ
Oh, ok. It was worth a shot. : )
Thank you! :D
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
I think that there is already a plug-in for that though. Weapon unleash by Yanfly if I remember correctly.
 

Tea's Jams

I'm human
Global Mod
Joined
Mar 28, 2017
Messages
1,039
Reaction score
2,578
First Language
English
Primarily Uses
RMMZ
@Poryg That's a cool plugin, but it deals with the actor battle command windows. I'm interested in the party battle command window.

Also, I was hoping to achieve something with a script call and avoid having to use a plugin.

I figured it would be a long shot that it could be done with a script call. Thank you! : ).

YIKES! Sorry for the double post, I'm on my phone and didn't see that I was posting directly underneath myself... :/
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
@just1witness It can be done without a plugin, but cannot be done through a mere script call. You have to edit rpg_windows.js to say the least, adding and defining a new command inside the party battle command window.
 

Tea's Jams

I'm human
Global Mod
Joined
Mar 28, 2017
Messages
1,039
Reaction score
2,578
First Language
English
Primarily Uses
RMMZ
@just1witness It can be done without a plugin, but cannot be done through a mere script call. You have to edit rpg_windows.js to say the least, adding and defining a new command inside the party battle command window.
I wish I knew how to do this... It's only a matter of time before I break down and take a few months off to learn javascript.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
I strongly suggest you learn some javascript. Because if you learn to read the codes, you'll open up tremendous possibilities, trust me :} There's no real need to take too much time off, because if you don't practice, you'll just forget it all.
But that's going slightly off topic *puts on the cloak of invisibility hoping to hide from mods*
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,093
Members
137,587
Latest member
Usagiis
Top