Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Party Changing Script

Vang

Member

No, not really.

-Edit
Wait. I do have a script that displays all the enemies's HP, SP, and name.
Do you think that has something to do with it?
 
No it is an error with this script atleast the first part, although I tested my version and gameover happened maybe I forgot to update the script here when I last dealt with bugs, I don't have time to fix the problem today, I'll edit this post when I have though.
 
Tested it, I'm using SDK version 1.3, and it's compatable.

I've also test it with SephirothSpawn's Battle Switching & Summoning script, it compatable however you can't do any in-battling switching. So I'm removing In-Battle Switching script.
Your script works great! It's compatable with the other script I got too, so thank you for the great script! =)
 
I have a simple question (I think?) about your script. First of all, it's great and works perfectly in my game but I wanted to re-align some of the text that displays at the top of the Party Changing screen when you select a character. Namely I just wanted to do this so I could add the characters Face picture at the top. I went through your script and couldn't find the spot to begin changing this. Do you remember where you wrote that part?

Thanks for your time and the great script.
 
Basically graphics.update wasn't called in ten seconds or something (I can never remember which it is that needs to be called), it's likely an infinite loop (or it was just slow) so just try it once more and if the same thing happens could you post a list of your custom scripts?
 

Jaide

Member

This is an awesome script, though I wish it worked flawlessly with the RTAB/Animated battlers. If you switch a character in and then enter battle, the "new" character doesn't stand correctly compared to the others, regardless of where you have them in the party.

I don't know if that's something that could be remedied on your end, or if that's something that would need to be changed with the RTAB or animated battlers scripts. :x
 
So it will be able to tell when you add or remove ppl from the party? Cuz I suck at scripts, so like, if I have 4 ppl in the party and I do an event command that adds a 5th member to the party they will be put in reserve?

Edit: Crap sorry, I am using Moghunter's menus so I can't even use this lol. It is a very nice party changer that is easy to use though, so good job.
 
I made my max party size at 8 and so I made 7 people join the default character. Now I get an error whenever I try to enter the main menu. It says:

Script 'Party Changer' line 142: SystemStackError occured.

stack level too deep.

BTW, line 142 says large_refresh
 
I LOVE this script, but now I've encountered a teensy problem :s

I'm getting towards releasing a demo of my game, so now I'm going through and actually playing the game, so I never noticed this before...

The script still works, but it doesn't "scroll down" when you are choosing who to use an item or skill on. I'm sure you won't understand ':| that so I made pics :D

http://i7.photobucket.com/albums/y288/Lorddonk/Moon%20Guardians/ex1.png[/IMG]
First when you go to the menu screen it does this normally... (I checked by deleting mog menus and it still happens) anyway. In this example I want to use "cooling wave" which is a healing move on a character who may be 8th in the party.

http://i7.photobucket.com/albums/y288/L ... ns/ex2.png[/IMG]
When you click on the move this box comes up

http://i7.photobucket.com/albums/y288/L ... ns/ex3.png[/IMG]
But when I scroll past the 4th character, in this case, 'Ishtin', the box doesn't "scroll up" to reveal the rest of the party members!

I can still choose one of them, but is there a way to make it "scroll up", because while I may know what to do, the player probably won't.

http://i7.photobucket.com/albums/y288/L ... ns/ex4.png[/IMG]
This happens on the 'Item' menu too.

I hope you can understand what I mean, and I hope its possible! Your script is the best! :thumb: I'm using this and your "lock party" script! :yes:
 
Fomar0153;277583":sq5ywcdi said:
I fixed that ages ago, I must have forgot to correct the script here.

I'll edit this in a few minutes with the solution.

Or, I've had the script probably since you made it :D I probably just never noticed an updated version. Either way, thanks! Giving it a try now! :)

EDIT: Nope. Still does the above ^^...
 
Sorry I never did edit it, (something came up) here's the code you need to add:
Code:
class Window_Target < Window_Selectable
  
  def initialize
    unless $game_party.actors.size > 4
      super(0, 0, 336, 480)
    else
      super(0, 0, 336, 160 * $game_party.actors.size)
    end
    self.contents = Bitmap.new(width - 32, height - 32)
    self.z += 10
    @item_max = $game_party.actors.size
    refresh
  end
  
  alias large_refresh refresh
  def refresh
    large_refresh
    self.height = 480
  end
  
  def page_row_max
    return 4
  end
  
  def top_row
    return self.oy / 116
  end
  
  def top_row=(row)
    if row < 0
      row = 0
    end
    if row > row_max - 1
      row = row_max - 1
    end
    self.oy = row * 116
  end
  
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
      return
    end
    row = @index / @column_max
    if row < self.top_row
      self.top_row = row
    end
    if row > self.top_row + (self.page_row_max - 1)
      self.top_row = row - (self.page_row_max - 1)
    end
    cursor_width = self.width / @column_max - 32
    x = @index % @column_max * (cursor_width + 32)
    y = @index / @column_max * 116 - self.oy
    self.cursor_rect.set(x, y, cursor_width, 96)
  end
  
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top