ID:169775
![]() May 2 2005, 3:50 am
|
|
I'm trying to make a game and I wanted it to have a Random Battle System as well as having party memebers with you in the fight and I can't figure out how I would be able to do that. Can anyone lead me some Help please?
|
Copyright © 2025 BYOND Software.
All rights reserved.
Look up one of the battle system demos. This part is simple, as you just have a set probability every step to execute a battle_setup function. So you need to overwrite Move, use prob inside of it, and create the new function to call.
Keep a list of everyone in the party, and locate them all into the battlefield when a battle starts.
You could pass two lists to the battle function, a list/group1 and list/group2, and then would have no need for a battle_win_check function. However, the way it is done there instead allows you to have more than two parties to a battle if you so wish. For instance, you could have a three mob free-for-all.
As you can see, the basic idea is to simply loop through all mobs involved and do to them what you would normally have done to a pair of mobs. This applies to everything except targeting for the average game. Normally you just have two variables when you don't have partying, mob/attacker and mob/defender. Now, instead of referencing the opposite mob, you give the attacker the option to choose whom the mob wishes to attack, probably done with a call to input.