The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: firerain on June 29, 2007, 08:36:31 PM

Title: RPGMakerXP: Ingame windows question
Post by: firerain on June 29, 2007, 08:36:31 PM
As the title reads, how do you do it? Is it possible? To be more descriptive, basically I want a window that pops up ingame when you select a certain choice from an NPC or character.

Example : I talk to a custom Blacksmith I've created, and I select an option, lets say to make a mythrill sword. I would want a window to show-up showing what I need to create the weapon, how much gold, and the buttons etc...

I know it would require scripting but I'm not familiar with Ruby and the RPGXP scripting face.

Also, I know it could probably be done using events and text. But with all the variables and conditional branches, etc...I would get confused. (As if I won't get confused with the script, hah).
Title: Re: RPGMakerXP: Ingame windows question
Post by: Reddawg on June 29, 2007, 08:54:25 PM
can you be even MORE descriptive? =p  do you want a window to pop up when you have it highlighted, or after you have selected it?
Title: Re: RPGMakerXP: Ingame windows question
Post by: firerain on June 29, 2007, 09:04:27 PM
After I've selected the option.
Title: Re: RPGMakerXP: Ingame windows question
Post by: Reddawg on June 29, 2007, 09:23:17 PM
leme try to make a no-need-to-edit-the-script-window script (one you activate+make with the event "[Script...]") Ill keep you up-to-date.

in progress...

sorry nothing yet, but you could always use pictures
Title: Re: RPGMakerXP: Ingame windows question
Post by: firerain on June 29, 2007, 11:20:55 PM
Quote from: Reddawg on June 29, 2007, 09:23:17 PM
leme try to make a no-need-to-edit-the-script-window script (one you activate+make with the event "[Script...]") Ill keep you up-to-date.

in progress...

sorry nothing yet, but you could always use pictures
Anyone else know how to do this?
Title: Re: RPGMakerXP: Ingame windows question
Post by: Reddawg on June 30, 2007, 01:05:35 AM
it shouldnt be difficult, I just dont know the language. someone who does just needs to make an activatable script like @gold_window = window_whatever.new and change the window_whatever parameters like location and size in the right place, using cx to get the text's size to adjust properly to what's needed (dunno if that's necessary).  I could probably do it myself, but it would be un adjustable to a certain extent unless you knew how to adjust properly =p

would you want that?

EDIT* well too bad I already made it lol, here you go! I hope you can absorb that or whatever

http://reddawg.freepgs.com/Popup%20Window%20Demo.exe

message in the scripting located as "Window_Popup"

EDIT* I can easily change this to your liking, out of boredom here's what I got now

(https://rmrk.net/proxy.php?request=http%3A%2F%2Freddawg.freepgs.com%2Fdemo1.JPG&hash=e6d804b6fd7f377f12e9aa333641da0ac3ca54fb)
Title: Re: RPGMakerXP: Ingame windows question
Post by: firerain on June 30, 2007, 03:07:05 AM
EDIT: Nevermind, I read your comments in the script.
EDIT 2: Holy shit, I'm conpuzzled. ._.

Uh, correct me if I'm wrong, but that's only one script. I need to be able to use atleast 10. SO if I use that for all of them, I can only use the text that I insert in the script?

Or can I make separate scripts and change the script event in the event object?

Title: Re: RPGMakerXP: Ingame windows question
Post by: Reddawg on June 30, 2007, 02:27:32 PM
just copy it, change the Window_Popup parts to something else like Window_Poopup, and the script event must be @gold_window = Window_Poopup.new
that's it

EDIT* oh yeah and to get rid of the window put @gold_window.dispose