Jump to content
Sign in to follow this  
AeroFunk80

Jet's Sideview Battle Script

Recommended Posts

I am currently working on a project in VX Ace. I'm using the Jet's Sideview Battle script: http://www.rpgmakercentral.com/topic/509-simple-side-view/

 

The script is great and does everything I want for a side view system. The issue I'm having though is when a character in your party dies (or the Death State is applied). The sprite disappears off the battlefield, as they should. However, when you select an item, spell or ability that is used on your party, when you select the empty space that once contained your dead party member, they show up in battle again (still dead) but they're walking in place, as if they're not dead. It's very awkward looking.

 

I went into the script and messed around with it. What seems to be causing this is the flashing option. You can select True or False to have your characters and enemies flash when you select them. When this is set to TRUE... when you select the space with the dead sprite, they are forced to reappear, I'm guessing, because the game needs something there to make flash. If I change this to FALSE... that's not the case. The character dies, they disappear from the field and does not reappear if you select them. This is a fix for my problem but now I'm faced with the fact that I like the flashing option when selecting the enemies, because it's easier to select the battler when issuing commands. Without the flashing, you can't physically see which enemy you're selecting.

 

Basically--I want the flashing turned on, but I also want your character to disappear (without reappearing unless you rez them) on the battlefield.

 

I'm not good with scripting, at all, so aside from the options at the top of the script where you can modify... I have no idea what I'm doing in the more advanced areas. Can someone please have a look at the script and see if there's a fix for this? Or possibly another script I can add to help? I didn't want to post the script in here directly because I wasn't sure if that was allowed. You can see the script in the link above.

 

Thanks in advance for any help you can give.

 

 

Share this post


Link to post
Share on other sites

I have never used this script, but perhaps you could consider a battle cursor? There are several. Victor sant target arrow, yanfly target arrow, mog battle cursor, akea battle cursor, for example. Perhaps try one of those.

Share this post


Link to post
Share on other sites

This is how new I am... I thought the cursor had to be part of the battle script. No idea you could ADD one to the current battle script I'm using. This worked GREAT! I turned off flashing and having a cursor now to show who's being selected. Thanks for the help and suggestion! :-)

  • Like 2

Share this post


Link to post
Share on other sites

I didn't want to post a new topic, so I figured I'd post in here. Not sure if anyone will see it. I've run into another problem with this same battle plugin. It doesn't happen often, but occasionally I get an error that crashes my game when playing. It happens during a battle and the error message reads: "Script 'Jets Battle System' line 436:NoMethodError occurred. Undefined method 'guard?' for nil:NilClass.

 

I go into the script and to line 436... but I have NO idea how to fix it. During the battle, one of the enemies used an offensive ability on one of my heroes (Smash, which does damage with a chance to stun). That's when the game (sometimes) crashes with the error I listed above. Here's line 436 in the script (with a few lines above and below). The entire script is in my original post above:

 

429  alias jet3746_use_item use_item
430  def use_item(*args, &block)
431    sprite = @spriteset.battler_to_sprite(@subject)
432    if (@subject.actor? || @subject.bat_sprite?) && !@subject.current_action.guard?
433      sprite.slide_forward
434    end
435    jet3746_use_item(*args, &block)
436    if (@subject.actor? || @subject.bat_sprite?) && !@subject.current_action.guard?
437      sprite.slide_backward
438    end
439  end
440 end
 
 
Thanks! :-)

Share this post


Link to post
Share on other sites

Did you change the default guard settings. If so, that's your problem. The guard cannot be adjusted, otherwise it causes problems. Use a script to do attack/guard replace.

If this is not the issue, then I have no idea.

Share this post


Link to post
Share on other sites

Did you change the default guard settings. If so, that's your problem. The guard cannot be adjusted, otherwise it causes problems. Use a script to do attack/guard replace.

If this is not the issue, then I have no idea.

Do you mean did I change the Guard Skill? I made a few adjustments (speed, animation and I added a +1 DEF buff) but I kept it in the same location (line 2, below attack). Could me having someone use the guard skill and then having the SMASH skill while they're guarding be causing this? The error doesn't happen often, so that's the problem. I can't really test it. I've done multiple play throughs of my game and it's only happened twice.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted