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
175
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,507
Reaction score
736
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,493
Reaction score
8,320
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 Profile Posts


It's a Spanish devlog don't get scared!. (please)
Q:"Why don't you get a job?"
A: Posting statuses IS my job. It just so happens to not pay and happen periodically over the course of three months.
My new 49" monitor has been dispatched from the warehouse. Will it arrive tomorrow? The day after? I love that we can track packages now, even if it does only tell me when it's left that end and when it's arrived at the local centre. As long as it doesn't end up in Melbourne again, which has happened before ...
My friend's doing a surprise stream of my game Origin Hunt on Twitch here ! Feel free to stop by :yhappy:

Forum statistics

Threads
117,236
Messages
1,105,753
Members
153,397
Latest member
Westernnimbus
Top