Help - Search - Members - Calendar
Full Version: Can't kill enemies using the Sideview Battle System
RPG RPG Revolution Forums > Scripting > Script Development and Support
Adkit
1) When I get into a battle I can attack and kill one enemy just fine but when I start attacking the second enemy he keeps taking damage but he never ever dies no matter what. Sometimes the glitch doesn't happen for some reason though. I'm using the Sideview Battle System plus a bunch of other scripts and I have NO idea where the problem is.

2) I also still have a problem with the fact that random encounters start even when you're standing still but that is probably because of the pixelmovement script.

Here's the game, stripped of music and things and started on the map so you can test the combat:
http://goto.glocalnet.net/injuredmind/aq2.exe

Please help? sad.gif
Night_Runner
I beat the first enemy, and then completely died against the others....

Other than your enemies are overpowered, let's see what I have to work with....

There's your problem!
Go to line 940, and change it to read like so:



Is that a problem with the Battle system itself? You might want to report that to the developers......


And the random encounters is very weird...... I turn right (for example), stop moving, just waiting, and then it'll decide it's time for a random battle.... let me look into it!
Solution!

Sorry, I'm running quite late,

You need to look for Game_Player in the pixel movement, and scroll down to:


We're moving that last bock, starting with if not (@move_route_forcing or @move_to_place), up, like so:



So the full code in the block reads:
CODE
    if [@last_real_x, @last_real_y] != [@real_x, @real_y]
      if not (@move_route_forcing or @move_to_place)
        # Event determinant is via touch of same position event
        result = check_event_trigger_here([1, 2])
        # updates encounter count according to move_speed
        if result == false and (@encounter_count > 0 and
        not ($DEBUG and Input.press?(Input::CTRL)))
          @encounter_count -= @max_steps
        end
      end
    end

Adkit
Oh wow, it works! You're some kind of wizard, I have so many random scripts added in there that I was afraid I'd never find the solution but it seems like it's working, at least for now! smile.gif Thank you.

Now I can finally start working on making the enemies less overpowered, I've been holding off on playtesting the battlesystem since I had those bugs in it. x.x
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.