Calling Scripts
#1
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
Reply }
#2
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.
Reply }
#3
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.
Reply }
#4
Thanks to both of you I just finished my homework lol I'm going to try this now.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
  Icon Display 1.0 scripts makes events impossible to go to events, which are passable Djigit 0 3,960 01-03-2015, 09:11 PM
Last Post: Djigit
   Calling Random Numbers Alistor 7 9,246 09-08-2013, 08:41 PM
Last Post: DerVVulfman
   How to get class name from Scripts.rxdata? MechanicalPen 2 6,776 08-13-2013, 05:50 PM
Last Post: MechanicalPen
   looking for day/night/weather scripts: Ahzoh 2 5,092 07-31-2013, 05:25 AM
Last Post: Ahzoh
   MrMo's ABS Ultimate and Other Scripts Erechel 6 9,760 05-07-2012, 03:37 AM
Last Post: Erechel
   Combine two scripts Kerdukie 0 3,366 12-25-2009, 02:16 AM
Last Post: Kerdukie
   Sideview Tankentai XP & SDK Scripts Ravenith 1 5,427 08-26-2009, 03:01 AM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)