Posts: 2
Threads: 1
Joined: Nov 2009
Idk if this is the right place to put this, if it's not please move it.
Now onto my issue. I just can't seem to figure out how to call a script. After looking at a couple of tutorials that vaguely explain it has something to do with common events. But I have no idea other than that. I'd really appreciate it if someone could explain this thoroughly as if you were explaining it to your computer illiterate grandpa.
Thanks in advance
Posts: 437
Threads: 13
Joined: Jul 2009
Well, first, you need to inform us why you want to use call scripts.
Call scripts, used with the Event command "Call Script" I believe, are snippets of code that access a custom script or default script and does something with it. For instance, for GubiD's tactical battle system, one can turn it on or off using a call script. It take some knowledge of Ruby to use.
Posts: 11,228
Threads: 648
Joined: May 2009
Sometimes, you are given an example of a call command in a script, like so:
Code:
# ------------------------------------------------------
# To call the plutonium destruct feature, please use the following
# command in a call script:
# $scene = $game_system.destruct_p = true
#
# ------------------------------------------------------
Comic little thing, eh?
But yeah. You may be given instructions like that.
What you can do is to make a map event and go to the 3rd page of map event commands. On the bottom right of the commands is the 'Call Script' event command.
Clicking on the 'Call Script' button brings up a dialog window where you can enter a small amount of RGSS (or RGSS2) Ruby scripting. :HAPPY: It is here where you can enter your script call. In the above case, you would enter:
Code:
$scene = $game_system.destruct_p = true
Sometimes there's more to enter... sometimes not. But this is generally what is asked.
Posts: 2
Threads: 1
Joined: Nov 2009
Thanks to both of you I just finished my homework lol I'm going to try this now.