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
259
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,123
Reaction score
10,618
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
259
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
259
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,123
Reaction score
10,618
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,020
Reaction score
2,522
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,020
Reaction score
2,522
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

LunaTechsDev
Veteran
Joined
Jul 2, 2016
Messages
676
Reaction score
588
First Language
German
Primarily Uses
RMMV
@just1witness So just a normal skill as a command to the party command window?
 

waynee95

LunaTechsDev
Veteran
Joined
Jul 2, 2016
Messages
676
Reaction score
588
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,020
Reaction score
2,522
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,123
Reaction score
10,618
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,020
Reaction score
2,522
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,123
Reaction score
10,618
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,020
Reaction score
2,522
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,123
Reaction score
10,618
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: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Hello folks, I'm an old member deciding to reenter the forum. Greetings :D
When a parent (of a less than adult aged child) is like
"Oh, I'm like a friend to my child. We're friends."
I'm like
"Oh, that kid's gonna suck...."
Baby tiger gets a belly rub! ^.^
Ami
--- Friendship System ---

(F.Mage and F.Healer's FP is 100)
F.Mage: We did it! we can beat the monster easily!
F.Healer: With the Friendship System,we got stronger thanks to you F.Mage (Hugging)
F.Mage: (Blushing) Ahh...don't say like that. we are Best Friend Forever.
(In Distand)
M.Mage: They look happy...
M.Healer: Yeah...always like that...

Forum statistics

Threads
103,286
Messages
998,593
Members
134,796
Latest member
CotE
Top