Great system Mr.mo, i might use it in one of my projects :)
Mr.Mo's Squad Based ABS (SBABS)
RPG Maker ScriptsHi,
I had an error on SBABS, i added it to my game and if you kill a person an error pops up (dosent happen alot but i want it off)
I had an error on SBABS, i added it to my game and if you kill a person an error pops up (dosent happen alot but i want it off)
if some one can answer me this about this script please! How do you make the monsters use skills? In your regular ABS system the monsters can use skills but seems like they can't in this one... I tried to make an enemy with only spell attacks and they won't do anything.
[QUOTE=Orges;308496]Hi,
I had an error on SBABS, i added it to my game and if you kill a person an error pops up (dosent happen alot but i want it off)[/QUOTE]
It would be nice to know what that error says...
I had an error on SBABS, i added it to my game and if you kill a person an error pops up (dosent happen alot but i want it off)[/QUOTE]
It would be nice to know what that error says...
[QUOTE=smellycheeseman;300125]I got an error. When I saved with another party member leading I got this:
Script 'o SDK Part III' line 1773: TypeError occured.
no marshal_dump is defined for class Sprite.[/QUOTE]
I've been getting this error, too. It happens 90% of the time, making the party switching almost unusable. Can anyone fix this error? Is anyone even using this ABS?
Too bad Mr. Mo. went commercial on us. :s
Script 'o SDK Part III' line 1773: TypeError occured.
no marshal_dump is defined for class Sprite.[/QUOTE]
I've been getting this error, too. It happens 90% of the time, making the party switching almost unusable. Can anyone fix this error? Is anyone even using this ABS?
Too bad Mr. Mo. went commercial on us. :s
You you want animation even if you don't attack, add this in line 1123ish
(the update player section)
(the update player section)
if Input.trigger?(ATTACK_KEY)
animate($game_player, "_melee") if @player_ani
end
animate($game_player, "_melee") if @player_ani
end
Expand to see the code.
[QUOTE=malick;291579]Is there anyway to not allow players to change party leaders?[/QUOTE]
get rid of lines 1197 - 1202 and 168 and 170
get rid of lines 1197 - 1202 and 168 and 170
It seems removing the party switching code is our only option for now. I wish someone who understood scripting better could help us out.
Since that Mr.Mo has quit, I think we are going to demand a new ABS and other scripters are going to make them off this or start from scratch. Then there will be a little competetion between a few scripters to get a great ABS and that will be great for us all!
That seems to be our only option.....
But this ABS is sooooo close to being finished. It's only a couple bug fixes away. I'm also sure that it wouldn't take more than a few lines of code to make an Event Vs Event version.
But this ABS is sooooo close to being finished. It's only a couple bug fixes away. I'm also sure that it wouldn't take more than a few lines of code to make an Event Vs Event version.
Hey guys! I did manage to fix something....
Did you notice the menu??? If you checked it, you might have realized that you can't scroll down to select one of your extra party members. This would prevent you from selecting party member 7 and changing his equipment for example.
Here's a fix:
Go to the Window_MenuStatus class and change it to this
CREDIT: Credit to Fomar whose scripts included these changes.
http://www.hbgames.org/forums/showthread.php?t=9722
I apologize if it causes any incompatability with other scripts....
I'm not very good with Ruby, but I know Java and C++. I'm trying to fix this darn thing. I just can't fix the error with the party switching and saving just yet. I'll keep trying.
Did you notice the menu??? If you checked it, you might have realized that you can't scroll down to select one of your extra party members. This would prevent you from selecting party member 7 and changing his equipment for example.
Here's a fix:
Go to the Window_MenuStatus class and change it to this
#==============================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
#super(0, 0, 480, 480)
unless $game_party.actors.size > 4
super(0, 0, 480, 480)
else
super(0, 0, 480, 160 * $game_party.actors.size)
end
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
x = 64
y = i * 116
actor = $game_party.actors[i]
draw_actor_graphic(actor, x - 40, y + 80)
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + 90, y + 32)
draw_actor_exp(actor, x, y + 64)
draw_actor_hp(actor, x + 236, y + 32)
draw_actor_sp(actor, x + 236, y + 64)
end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
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
alias large_refresh refresh
def refresh
large_refresh
self.height = 480
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 page_row_max
return 4
end
end
# ** Window_MenuStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
#super(0, 0, 480, 480)
unless $game_party.actors.size > 4
super(0, 0, 480, 480)
else
super(0, 0, 480, 160 * $game_party.actors.size)
end
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
x = 64
y = i * 116
actor = $game_party.actors[i]
draw_actor_graphic(actor, x - 40, y + 80)
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + 90, y + 32)
draw_actor_exp(actor, x, y + 64)
draw_actor_hp(actor, x + 236, y + 32)
draw_actor_sp(actor, x + 236, y + 64)
end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
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
alias large_refresh refresh
def refresh
large_refresh
self.height = 480
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 page_row_max
return 4
end
end
Expand to see the code.
CREDIT: Credit to Fomar whose scripts included these changes.
http://www.hbgames.org/forums/showthread.php?t=9722
I apologize if it causes any incompatability with other scripts....
I'm not very good with Ruby, but I know Java and C++. I'm trying to fix this darn thing. I just can't fix the error with the party switching and saving just yet. I'll keep trying.
Another fix!
This will do the same for using selecting characters from your massive party when using items or skills on them.
Change the code in Window_Target to:
CREDIT: Credit to Fomar whose scripts included these changes.
http://www.hbgames.org/forums/showthread.php?t=9722
This will do the same for using selecting characters from your massive party when using items or skills on them.
Change the code in Window_Target to:
#==============================================================================
# ** Window_Target
#------------------------------------------------------------------------------
# This window selects a use target for the actor on item and skill screens.
#==============================================================================
class Window_Target < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
#super(0, 0, 336, 480)
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
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
for i in 0...$game_party.actors.size
x = 4
y = i * 116
actor = $game_party.actors[i]
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x + 8, y + 32)
draw_actor_state(actor, x + 8, y + 64)
draw_actor_hp(actor, x + 152, y + 32)
draw_actor_sp(actor, x + 152, y + 64)
end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
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
alias large_refresh refresh
def refresh
large_refresh
self.height = 480
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 page_row_max
return 4
end
end
# ** Window_Target
#------------------------------------------------------------------------------
# This window selects a use target for the actor on item and skill screens.
#==============================================================================
class Window_Target < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
#super(0, 0, 336, 480)
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
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
for i in 0...$game_party.actors.size
x = 4
y = i * 116
actor = $game_party.actors[i]
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x + 8, y + 32)
draw_actor_state(actor, x + 8, y + 64)
draw_actor_hp(actor, x + 152, y + 32)
draw_actor_sp(actor, x + 152, y + 64)
end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
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
alias large_refresh refresh
def refresh
large_refresh
self.height = 480
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 page_row_max
return 4
end
end
Expand to see the code.
CREDIT: Credit to Fomar whose scripts included these changes.
http://www.hbgames.org/forums/showthread.php?t=9722
I?m getting a problem. Whenever i try going near any enemy, i get the followying error:
"An error has occured in Mr.Mo's SBABS Lite 2.0 during script operation.
divided by 0"
I have set up the scripts exactly like the demo, haven?t put any other scrupts and the demo works fine.
Thanks in advance.
"An error has occured in Mr.Mo's SBABS Lite 2.0 during script operation.
divided by 0"
I have set up the scripts exactly like the demo, haven?t put any other scrupts and the demo works fine.
Thanks in advance.
[QUOTE=DMaverick;315412]I?m getting a problem. Whenever i try going near any enemy, i get the followying error:
"An error has occured in Mr.Mo's SBABS Lite 2.0 during script operation.
divided by 0"
I have set up the scripts exactly like the demo, haven?t put any other scrupts and the demo works fine.
Thanks in advance.[/QUOTE]
Um.... a few questions:
1) Are you using the official version of RPG Maker XP?
2) Did the Demo work for you before you tried setting it up in your RPG?
3) If the demo at least worked, why not just copy the demo and rename a few things?
"An error has occured in Mr.Mo's SBABS Lite 2.0 during script operation.
divided by 0"
I have set up the scripts exactly like the demo, haven?t put any other scrupts and the demo works fine.
Thanks in advance.[/QUOTE]
Um.... a few questions:
1) Are you using the official version of RPG Maker XP?
2) Did the Demo work for you before you tried setting it up in your RPG?
3) If the demo at least worked, why not just copy the demo and rename a few things?
So did that help you?
I still need someone to fix the saving error after you switch party leaders....
I still need someone to fix the saving error after you switch party leaders....
Would any capable scripters like to take on the challenge of fixing this bug ridden script? It would be a great favor to the community, I think.
triple poster, but atleast its not spam.
One word for this script... SMEXY
Great!
But how can I attack the enemies with the hero ???
But how can I attack the enemies with the hero ???
Make sure the hero is equipped. The keys are listed in the settings on top of the script.
I thought you stopped supporting these scripts...
Maybe he had a change of heart. I read somewhere that he made a new ABS that is supposed to be really good. We'll have to see.
Welcome back, Mr. Mo!
Welcome back, Mr. Mo!
I have stopped supporting it but that was a simple question :-/ XD.
And yup, I made a new ABS, its done. Releasing soon for public testing.
And yup, I made a new ABS, its done. Releasing soon for public testing.
I can't wait to see if, hopefully it's way better. This script is already awesome, I wonder if it can get any better :P
Hmm...The SBABS will be released shortly after the ABS. I want to get rid off all the bugs from the ABS so I can make the SBABS based on it. Less bugs this way.
The only reason I hated the SBABS was from the lag, other than that it was fine.
Hopefully they turn out nice, by the way will these work with Rpg Maker VX. If I get it and decide to use these scripts?
Hopefully they turn out nice, by the way will these work with Rpg Maker VX. If I get it and decide to use these scripts?
they won't work with RMVX. I haven't looked but I edited alot of default classes of RGSS1 and RGSS2 is different.
I can't promise on lag but my new scripting habits have decreased lag in all my script by a lot.
I can't promise on lag but my new scripting habits have decreased lag in all my script by a lot.
Sounds good, VX won't be used for a long time for most people.
Tis' one GREAT script Mr. Mo.
*bada-bump* =3
"Sounds good, VX won't be used for a long time for most people."
To the contrare! :thumb:
"Sounds good, VX won't be used for a long time for most people."
To the contrare! :thumb:
Original thread: https://www.hbgames.org/forums/viewtopic.php?t=19797