vx Ace Scripts using script calls

CodeHunterEx

Hunter of the Perfect Code
Veteran
Joined
Nov 26, 2016
Messages
133
Reaction score
64
First Language
English
Primarily Uses
RMVXA
This may be an insane question, but can you create a script that contains script calls like "$game_temp.reserve_common_event(ID)" and other calls, or is it possible to convert the script calls so they can be used as a script?
 

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 answer is yes. Without this possibility programming would not even be really possible.
 

CodeHunterEx

Hunter of the Perfect Code
Veteran
Joined
Nov 26, 2016
Messages
133
Reaction score
64
First Language
English
Primarily Uses
RMVXA
Just so we are on the same mindset, I am referring to creating a script in the script editor that has the calls and then using 'script' to access them.

I have no ideas on scripting, but from what I have seen you use 'script' in the events options to call a script in the script editor.
 

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 use "script" in the events options to call any sort of code, not just the functions you define inside scripts using def. But you can define functions inside the script files and then just use Script to call them.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
What is it you're trying to do?
 

CodeHunterEx

Hunter of the Perfect Code
Veteran
Joined
Nov 26, 2016
Messages
133
Reaction score
64
First Language
English
Primarily Uses
RMVXA
Learn? Cause Havoc? Just curious, mostly.

One thought was creating my own little script(s) in the editor which might be faster to type out than to do all the clicking and eventing manually.

Does any of that make sense? In the Vulcan way of thinking, does that seem logical?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,594
Reaction score
6,527
First Language
Indonesian
Primarily Uses
RMVXA
You consider everything is insane, it isn't. It's actually not. It makes sense. If you're able to do it, do it. It falls within "The more you know-". I did it myself too.

For example, in my script slot, I named it "Convenient Eventing", instead of manually clicking change event graphics for a sake of cutscene, I simplify it in a script call with the call name "begin_cutscene". What it does is to change all events that have a certain name pattern and use that pattern to change its graphics. Way more simple than the repetitive use of move route and change graphics.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
[move]Learning Ruby and RGSSx[/move]
 

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

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,243
Members
137,609
Latest member
shododdydoddy
Top