Need Hirion Menu Script Modified Slightly.

Sardonrayne

Villager
Member
Joined
Feb 1, 2014
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Hello everyone. I have been trying to edit this script by Nicke called Hirion Engine Main Menu.

What I am needing is a specific area to be re-done or modified to where it will change depending on the size of the party. All attempts I made to accomplish this result in a syntax error upon trying to launch my game. I don't think there is any conflicts as the unmodified menu script works just fine. Here's the segment I need modified.

  def item_height
    # // Method to determine item height. <EDITING>
    return 200
  end
This is on 220 to 223 of the script.

Here is the full script;

http://pastebin.com/2AMuQC9W

(Search <EDITING> to find the segment I need help on)

So here's specifically what I am wanting from this script - or to know it's not possible. :p

When the party size is less than or equal to 5, the Height should be should be '200'. When it is 6 or more it should change to 100. I would also accept a short code I could call in-game to modify this value through a Call Script command. :)

Thank you to anyone who puts for the time and effort to help me with this. It is greatly appreciated.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Change that 'return 200' line to this:

Code:
if $game_party.members.size <= 5  return 200else  return 100end
 

Sardonrayne

Villager
Member
Joined
Feb 1, 2014
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Change that 'return 200' line to this:

if $game_party.members.size <= 5 return 200else return 100end
Awesome! Worked like a charm, I had tried something extremely close to that but I just had it formatted wrong it seems. Much appreciated! =D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top