Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [RESOLVED] Help with window position
lonedarkness
post Jan 15 2012, 12:20 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 5
Type: Developer
RM Skill: Undisclosed




I screwed around with some code some time ago, and now when I try to use a menu-skill in my game (ie: Heal), the 'use' window spawns too far to the right and gets cut off.
Bizarrely, this only happens with skills that target one person; skills that target the whole party work fine.

I just want to know where that window's x/y coordinates of that particular window are in the code so I can adjust it.

This post has been edited by lonedarkness: Apr 24 2013, 12:56 AM
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Jan 15 2012, 01:48 AM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




It should be in Scene_Skill, written as

CODE
@target_window.x = (@skill_window.index + 1) % 2 * 304


Try modify this to move the window on the x coordinate.

If you want to move it on the y coordinate, then just modify

CODE
@target_window.y


Does the window cut when you select a specific skill in both column or just a skill from the left column?
Remember that Scene_Item also uses the very same convention.

EDIT: This procedure will work only if you're using standard Menu / Skill Window. If you are using custom scripts, please post the Scene Script here, so that we can take a look and find what's wrong...

Jens

This post has been edited by Jens of Zanicuud: Jan 15 2012, 01:57 AM


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
lonedarkness
post Jan 15 2012, 02:24 AM
Post #3


Level 1
Group Icon

Group: Member
Posts: 5
Type: Developer
RM Skill: Undisclosed




QUOTE (Jens of Zanicuud @ Jan 15 2012, 04:48 AM) *
It should be in Scene_Skill, written as

CODE
@target_window.x = (@skill_window.index + 1) % 2 * 304


Try modify this to move the window on the x coordinate.

If you want to move it on the y coordinate, then just modify

CODE
@target_window.y


Does the window cut when you select a specific skill in both column or just a skill from the left column?
Remember that Scene_Item also uses the very same convention.

EDIT: This procedure will work only if you're using standard Menu / Skill Window. If you are using custom scripts, please post the Scene Script here, so that we can take a look and find what's wrong...

Jens



Actually I'm using SDK 2.4, but I was able to find the line in the SDK script (it's literally the same line, just in that script) and fix it (it's line 6063, and I removed the '+ 1' and the '* 304' for anybody interested).
Thanks for your help.

This post has been edited by lonedarkness: Jan 15 2012, 02:25 AM
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 02:33 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker