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,504
Reaction score
730
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,325
Reaction score
7,902
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

I've been busy trying out different art styles for my game.

Enemies deserve some spotlight also
hackingCompressed.gif
I think I can make a text-based mini-game with almost zero art assets and with code only...just a lot of code as assets all by themselves. :kaojoy:
A video update on the progress I've been making on the cutscenes. :kaosalute:

I wonder if color LUTs is possible for RPG Maker. It would be game changer and can replace the not so good looking tint screen

Forum statistics

Threads
115,866
Messages
1,093,580
Members
151,096
Latest member
RPGThrowawaymaker
Top