Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: MOG-Battle Command EX not working well...
- Original author: Chester
- Original date: July 31, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/mog-battle-command-ex-not-working-well.43067/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support
Summary
Hey , I've run into an issue where if the 1st Actor tries to use an item (during battle) to another character then I get an error. If another (not the 1st) actor tries to use an item on another character then it is good and everything is fine. Here is the portion of that code that doesn't seem to be working right... Spoiler
Archived First Post
Hey ,
I've run into an issue where if the 1st Actor tries to use an item (during battle) to another character then I get an error. If another (not the 1st) actor tries to use an item on another character then it is good and everything is fine.
Here is the portion of that code that doesn't seem to be working right...
Line 1091 is the one above end at the bottom of the spoiler
@c_nxy = [@sprite_commands[self.index].x,@sprite_commands[self.index].y]
Also I have already tried to start New Game and it still doesn't work well.
Protected download
I've run into an issue where if the 1st Actor tries to use an item (during battle) to another character then I get an error. If another (not the 1st) actor tries to use an item on another character then it is good and everything is fine.
Here is the portion of that code that doesn't seem to be working right...
#--------------------------------------------------------------------------
# ● Update BC Slide Effect
#--------------------------------------------------------------------------
def update_bc_slide_effect(bc_sprite,index)
return if !SLIDE_ANIMATION
return if !COMMAND_TYPE.between?(2,3)
if COMMAND_TYPE == 2
nx = @sprite_command_org[index][0]
ny = index == self.index ? @sprite_command_org[index][1] - 24 : @sprite_command_org[index][1]
elsif COMMAND_TYPE == 3
nx = index == self.index ? @sprite_command_org[index][0] - 24 : @sprite_command_org[index][0]
if SCROLL_ROW and self.index > @s_row_max
ny = @sprite_command_org[index][1] - (@sprite_command_cwh[index][1] * (self.index - @s_row_max))
else
ny = @sprite_command_org[index][1]
end
end
execute_move_rg(bc_sprite,0,bc_sprite.x,nx)
execute_move_rg(bc_sprite,1,bc_sprite.y,ny)
@c_nxy = [@sprite_commands[self.index].x,@sprite_commands[self.index].y]
end
# ● Update BC Slide Effect
#--------------------------------------------------------------------------
def update_bc_slide_effect(bc_sprite,index)
return if !SLIDE_ANIMATION
return if !COMMAND_TYPE.between?(2,3)
if COMMAND_TYPE == 2
nx = @sprite_command_org[index][0]
ny = index == self.index ? @sprite_command_org[index][1] - 24 : @sprite_command_org[index][1]
elsif COMMAND_TYPE == 3
nx = index == self.index ? @sprite_command_org[index][0] - 24 : @sprite_command_org[index][0]
if SCROLL_ROW and self.index > @s_row_max
ny = @sprite_command_org[index][1] - (@sprite_command_cwh[index][1] * (self.index - @s_row_max))
else
ny = @sprite_command_org[index][1]
end
end
execute_move_rg(bc_sprite,0,bc_sprite.x,nx)
execute_move_rg(bc_sprite,1,bc_sprite.y,ny)
@c_nxy = [@sprite_commands[self.index].x,@sprite_commands[self.index].y]
end
Line 1091 is the one above end at the bottom of the spoiler
@c_nxy = [@sprite_commands[self.index].x,@sprite_commands[self.index].y]
Also I have already tried to start New Game and it still doesn't work well.
Protected download
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...
