Help - Search - Members - Calendar
Full Version: [Scripting]Advanced Windows
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS
Pages: 1, 2
Redd
Exactly!
Night5h4d3
Who say a scripter cant post homework? XD I always hate it when there's a hud that just get's in the way.
you cant make it disappear, or to do so you have to press some key that you forget to do, and it's even worse when the HUD blocks an item or something important.
[Show/Hide] hidden!

So I decided to make the window and cause it's opacity to auto-correct if the player is being obscured by it. (i didnt decorate it much, but hey, the opacity auto adjusts!) great tutorial, law.
[Show/Hide] OMG I CAN SEE
The Law G14
@Redd: Alright, I think I get it now, can you show me a screenie of what the event looks like that calls the common event or turns the switch on?

@NightShade: Awesome work, man, love it smile.gif And that opacity thing you did is really amazing, great work biggrin.gif
Redd
What it does is you click on the dude which turns Switch 0001 ON, which activates this common event.
The Law G14
Alright, I think I figured it all out. First of all, make a new common event called 3 Man Stats[ON]. Set the trigger to none and inside this common event, go to page three of the list of event commands and go down to 'Script' to copy this code in:

CODE
$window1 = Hero_1.new
$window2 = Hero_2.new
$window3 = Hero_3.new


After that, make and turn on a conditional switch named 3 Man Stats so that your common event should look like this:

CODE
$window1 = Hero_1.new
$window2 = Hero_2.new
$window3 = Hero_3.new
Control Switches: [0001: 3 Man Stats] = ON


Next, make the event on the map that allows you to see your stats. Just make an event and go to the first page of the list of event commands and pick Call Common Event and pick the common event we just made.

Finally, make the event that disposes of the windows. Open up the event and make a new event page that turns on if the 3 Man Stats Switch is on. In this new event page, put in a script event command that looks like this:

CODE
$window1.dispose
$window2.dispose
$window3.dispose


Then after that, turn the 3 Man Stats switch off.

Hope that helps smile.gif


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.