Main Menu
  • Welcome to The RPG Maker Resource Kit.

RPGMakerXP: Ingame windows question

Started by firerain, June 29, 2007, 08:36:31 PM

0 Members and 1 Guest are viewing this topic.

firerain

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).

Reddawg

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?

The song stuck in my head this week is: Aerosmith - Dream On

firerain


Reddawg

#3
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

The song stuck in my head this week is: Aerosmith - Dream On

firerain

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?

Reddawg

#5
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


The song stuck in my head this week is: Aerosmith - Dream On

firerain

#6
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?


Reddawg

#7
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

The song stuck in my head this week is: Aerosmith - Dream On