The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: sparten84 on May 06, 2007, 01:11:34 AM

Title: [RESOLVED] help on full screen script
Post by: sparten84 on May 06, 2007, 01:11:34 AM
ok heres the deal. I'm very new at scripting rgss. I would like to make a script so when you get to the main menue on your game you will have an option to go full screen. i have already gotted to where i make the option on the main menue i just need to know how to make ruby automaticly press (alt+enter) when you select this option. If you could help me out you will be credited in this script and i will also post the scripts on rmrk. Thanks a ton!
Title: Re: help on full screen script
Post by: Falcon on May 06, 2007, 01:19:26 AM
It's easier than you think ;)


        $game_system.se_play($data_system.decision_se)
        $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
        $showm.call(18,0,0,0)
        $showm.call(13,0,0,0)
        $showm.call(13,0,2,0)
        $showm.call(18,0,2,0)

That's the code that worked for my game's demo. Don't bother giving me credit for this.
Title: Re: help on full screen script
Post by: sparten84 on May 06, 2007, 01:40:29 AM
how do i set this up i tried putting it in the menue script and it says un identified method
Title: Re: help on full screen script
Post by: Kidkay on May 06, 2007, 01:45:44 AM
will this work with out call script?
Title: Re: help on full screen script
Post by: Falcon on May 06, 2007, 01:55:11 AM
I'm not going to do this whole script for you, that's the syntax you would need if you actually knew RGSS.

Change the title to a request topic and maybe someone will do this for you.
Title: Re: help on full screen script [request]
Post by: sparten84 on May 06, 2007, 07:40:22 PM
there its a request
Title: Re: help on full screen script [request]
Post by: sparten84 on May 09, 2007, 09:48:42 PM
didnt i say i barly new rgss?????????????

Title: Re: help on full screen script [request]
Post by: Kokowam on May 09, 2007, 10:04:49 PM
Hahahaha.... I'll give this a shot. Makes me work on my scripting a bit.
Title: Re: help on full screen script [request]
Post by: Kokowam on May 09, 2007, 10:24:06 PM
Double post XD Didn't want to edit. Making sure this gets bumped.

HAAHHAHAHAHA SO DANG EASY!!!! XD Well, since the error was "unidentified method," we shall have to make one!


class FullScreen
  def initialize
    $game_system.se_play($data_system.decision_se)
    $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
    $showm.call(18,0,0,0)
    $showm.call(13,0,0,0)
    $showm.call(13,0,2,0)
    $showm.call(18,0,2,0)
  end
end

Add that just before Main (just in case ;)) and call it with a call script that has this:


FullScreen.new


XD Falcon, no wonder you didn't tell him. You're a meanie like Zeriab who makes other people give the answers.
Title: Re: help on full screen script [request]
Post by: pliio8 on May 09, 2007, 11:22:46 PM
I'm noy sure. But are trying to fix it? Because theres already several fullscreen scripts that dont need call script commands.
Title: Re: help on full screen script [request]
Post by: Kokowam on May 09, 2007, 11:25:29 PM
No he wants a choice on it. He could have just used Blizzard's Tons of Addons.... but w/e.
Title: Re: help on full screen script [request]
Post by: sparten84 on May 10, 2007, 09:38:14 PM
ty guys i already figured it out tho. Mastermo how the heck are you every where!
Title: Re: [RESOLVED] help on full screen script
Post by: Snowy Fox on June 17, 2007, 07:32:10 PM
I'm new to scripting myself... in fact, this is apparently my starting point. So how would I go about getting the game to start in full screen without the option?