The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: keyblade_bearer on February 23, 2007, 02:25:31 AM

Title: Temporarily Disabling a Script? {Blizzard}
Post by: keyblade_bearer on February 23, 2007, 02:25:31 AM
I want to disable Blzzards Add-Ons Scrpit for a cutscene in my game. Can someone give me a Call Script? Or whatever I need.
Title: Re: Temporarily Disabling a Script?
Post by: italianstal1ion on February 23, 2007, 05:36:13 AM
If I'm not mistaken, most of the commands in blizzard's Addons scripts have calls to turn off/on ingame. You probably want to turn off just one or two of the effects, maybe? Well if you find what they are in the script, you can turn them off by calling it false in a call script event.

Right out of the script;
Quote#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 2
#
# You can enable/disable any add-on here if you wish. Set the value to false
# to disable it initially. To turn it on/off ingame, just use the Call script
# command with one of these syntaxes:
#
# $game_system.NAME_OF_THE_ADDON = true
# $game_system.NAME_OF_THE_ADDON = false
#
# where NAME_OF_THE_ADDON is the same variable as the one used below.
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
So for example if you had
    @BETTER_TILEMAP_UPDATE = true

Just have a call script event saying
    @BETTER_TILEMAP_UPDATE = false

but this is for the SECOND configuration, a few cannot be turned off/on ingame (fullscreen, EQUAP)
Title: Re: Temporarily Disabling a Script?
Post by: keyblade_bearer on February 23, 2007, 08:43:15 PM
I know how to do that. But what I want is a temporrailral no script.
Title: Re: Temporarily Disabling a Script?
Post by: Karo Rushe on February 24, 2007, 03:54:45 AM
Call Script:

# $game_system.NAME_OF_THE_ADDON = false

And turned on Again:

# $game_system.NAME_OF_THE_ADDON = true


Byt to cancel a screipt...I dunno about that ;__;
Title: Re: Temporarily Disabling a Script?
Post by: keyblade_bearer on February 24, 2007, 04:09:18 PM
Sure, let's try that, it makes enough sense.

Nope, the code works, the HUD is gone, but the game freezes up, heres the exact code I put in:

$game_system.HUD = false

Is there a Call Script for resuming?