The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Chaos17 on September 18, 2014, 04:34:29 AM

Title: [ACE] Add options to Yanfly option system script (RESOLVED)
Post by: Chaos17 on September 18, 2014, 04:34:29 AM
Hello,

Can someone create/add 2 new option in Yanfly system script, please ?

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fyanflychannel.files.wordpress.com%2F2012%2F01%2Fso-01.jpg%3Fw%3D593%26amp%3Bh%3D408&hash=ded43a68f76cf9ae729e48024028107a43890ff7)

I would like the following options :
- Show tutorials ON or OFF
- Show shortcuts ON or OFF

I would like to use these new options with switches only.

Here the script : DROPBOX (https://www.dropbox.com/s/wwup3xa4oddkegg/System%20Options.txt?dl=0)
Title: Re: [ACE] Add options to Yanfly option system script
Post by: &&&&&&&&&&&&& on September 18, 2014, 05:12:38 AM
The option is already there. :o

    CUSTOM_SWITCHES ={
    # -------------------------------------------------------------------------
    # :switch    => [Switch, Name, Off Text, On Text,
    #                Help Window Description
    #              ], # Do not remove this.
    # -------------------------------------------------------------------------
      :switch_1  => [ 1, "Custom Switch 1", "OFF", "ON",
                    "Help description used for custom switch 1."
                    ],
    # -------------------------------------------------------------------------
      :switch_2  => [ 2, "Custom Switch 2", "OFF", "ON",
                    "Help description used for custom switch 2."
                    ],


You just do something like this.



      :switch_1  => [ 22, "Show Tutorial", "OFF", "ON",
                    "Toggles the tutorial on or off.."
                    ],



The format is.

    # -------------------------------------------------------------------------
    # :switch    => [Switch, Name, Off Text, On Text,
    #                Help Window Description
    #              ], # Do not remove this.
    # -------------------------------------------------------------------------
Title: Re: [ACE] Add options to Yanfly option system script
Post by: Chaos17 on September 18, 2014, 10:16:04 AM
Thank you kind sir, I totally missed that, silly me.
So I'm glad that you gave me an example so I coud do it myself.
I'm off trying it now.

:sdog: