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.

Trying to make my earlier question simpler. Stoping a battler from attacking.

Dko

Member

I would just like to know what bit of code I have to mess with in the basic battle system that comes with RPG maker xp to cause this desired effect. I want my actors to not be able to attack. I need to be able to still have them select a target for there attack but they need to not cause any dmg or do any animation.
See I have my own code for a different method of attacking and right now the old method and my new method both happen. I only want mine to happen.
I hope this is a lot easier to understand and solve then my previous post since I be leave I went in the wrong direction with the question there.

Thanks for any help.
 

Dko

Member

Well ive changed Scene_Battle (ccoa's side view system) I have added/changed a few things in a similar manor to another of Ccoa's scripts. A multi attack script of hers.
First I have it so Phase 4 of the code has a new step that it reaches in the refresh step(6). This new step allows my battlers to make multiple attacks but they also before hand make a normal attack. I can tell this because I don't get to give input for the attack. What im trying to accomplish is stop that extra attack from happening.

EDIT: ohh no I don't mean that the old stuff doesn't happen. I don't want it to happen and I don't know how to stop it.
 
I guess I am just confused. What you need to do is make whatever is happen in phase4_step6 happen in an earlier phase. You really need to take a step back and try and figure out the default battle system. It's simple, yet very complex due to the giant leeps it has and hundreds of methods all with specialized processes.
 

Dko

Member

Well basically thats what my question is about. I need help understanding how the battle system works when it comes to a actor attacking. I have a basic understanding but not a good enough one and I can't seam to get it any better. Its not my code so it confuses me
 

knmt

Member

it seems that you need someone who has already investigated that script deeply ...

btw why don't you just make your own , your earlier post is promising , you just need to know more about frame instead of trying to figure out what a long script means...
 

Dko

Member

The thing is I understand the script for the most part. It works a lot better then what I originally was doing. But some small difference that I don't see (ive compared my script with the one I based it off of) is causing my problem.
 

knmt

Member

haa is just my usual word...

anyway , I've fixed your problem and I think it's fine now .

Code:
http://mihd.net/8nrbp2

but haa...your code does look like a mess...sorry...there are a lot of unneeded lines of codes ...I really don't know why they should be there...

I marked any edited line with "edit here" quote so you will just need to search that line to see what is the problem .

Good luck haa...
 

Dko

Member

Alright. Thanks a lot for the help. A lot of code could be stuff I haven't had the chance to cut back out or was for testing purposes. Plus I was planing to most cleanup when I was done.

EDIT: Ohh yeah you can lock this thread if you wish mods.
 

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