SoundsByDane

Villager
Member
Joined
Mar 17, 2020
Messages
21
Reaction score
8
First Language
English
Primarily Uses
RMMV
Hey all. Was wondering what's the benefit of using script calls? Like why use something like "$gameMessage.add("Show Text Script Call")" instead of just using the "Show Text" event command?
 
Last edited:

Beregon

Veteran
Veteran
Joined
Aug 25, 2020
Messages
174
Reaction score
111
First Language
Czech
Primarily Uses
RMMZ
There's lots of reasons, but to provide a quick and easy example, look at the Play SE event command. Let's say you want to play a SE at 40% Pitch. However, the editor only allows you to set a 50% pitch at the lowest. With script calls, there's no such limit.

You can even replace the pitch value in a script call with the value of a variable.

And regarding the one you've posted... combine it with the SetFaceImage script call and you can have a message that changes the face image depending on the number of a specific variable and such.

Really, imagination's the limit here. They also make certain things easier. Just like plugins.
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,506
Reaction score
732
First Language
indonesian
Hey all. Was wondering what's the benefit of using script calls? Like why use something like "$gameMessage.add("Show Text Script Call")" instead of just using the "Show Text" event command?
if it's something that already coded to event command... then nothing i think...

script call is for something that did not coded to existing event command... or something that exist in event command but you need to modify if from some "hardcoded in the command" one...

some example is what Beregon mention above.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,344
Reaction score
7,970
First Language
Indonesian
Primarily Uses
RMVXA
Hey all. Was wondering what's the benefit of using script calls? Like why use something like "$gameMessage.add("Show Text Script Call")" instead of just using the "Show Text" event command?
In your example, none.

Strictly speaking on the "show text command" example, perhaps you could randomize the order of the words if you know some JS syntax.

The point is, once you know how to code JS, you could manipulate data and simplify the command that if it was using event, it requires a long sequence of events, while if you use script call, you only need to write a few lines and done.
 

SoundsByDane

Villager
Member
Joined
Mar 17, 2020
Messages
21
Reaction score
8
First Language
English
Primarily Uses
RMMV
Wow thank for all the replies guys! Was really helpful.
 

Latest Threads

Latest Posts

Latest Profile Posts

You look like you had a rough day...Here, have a Baby Panda!

A certain person better sell his stock while he still can, because it looks like it's going to take an unrecoverable nose dive.
7 years of trying to plan this project... and it got an official plotline today. 7 years. I really just have no concept of order huh GHJGSJHGVGHASFH.
Doing RPG Maker News for 24th October 2021

I'm not sure how to do this so I'll just ask here, Wheres a good place to post your game (for free) once its done?

Forum statistics

Threads
116,064
Messages
1,095,447
Members
151,428
Latest member
marsmason
Top