How can players choose order of attack in they party?

lecospn

Warper
Member
Joined
Mar 27, 2021
Messages
3
Reaction score
0
First Language
Portuguese
Primarily Uses
RMXP
Hi guys, how are you all?
So, I need a little help with RMXP.

I'm trying to set up a specific battle system where the player can choose the order of attack in his party. I now that the RMXP's battle system uses speed and randomness to determine who strikes first, but I want the player to have full control of that (in his party, obviously). How can I do that?

Again, I know that the engine uses speed to do that, but I dont wanna use speed. I want the player to be able to choose exactly who will strike first, even if its the slowest character. It makes sense in the context of the game.

How can I do that? Is theres a script around that do this? Thanks in advance!
 

orochi2k

The Mad King of Neolithic
Veteran
Joined
Jan 2, 2021
Messages
122
Reaction score
188
First Language
Chinese
Primarily Uses
RMXP
Find "def make_action_orders" in Scene_Battle 4 (it's likely here. But, I've modified my game too much. Thus, I'm not sure)
Find
@action_battlers.sort! {|a,b|
b.current_action.speed - a.current_action.speed }
That's the place where the order is decided. By default, it is determined by speed.
It will require some modification here to suit your needs.
It may also need to change UI a bit to allow users to be able to input the order.
 

Latest Threads

Latest Posts

Latest Profile Posts

I should stop staring at the screen too long. neck hurt
I've been in Fort Myers since Thursday night. I'm going home tomorrow or the next day... lol, I desperately need a good taste of homemade Japanese food. I might not be Japanese or even Asian (I'm American born and raised), but I absolutely love authentic Japanese cooking. Restaurant food doesn't do it justice.
Haven't been working on any of my projects or resources lately as I'll soon be moving to a new apartment. It's been a stressful move but I'm really looking forward to it.
//Sees it's the same price at Best Buy for a new SSD as Amazon
//Sees it's 103F outside and Best Buy is half a hour of driving.
//Orders from Amazon.
I'll wait the 2-3 days. :LZSwink:

Forum statistics

Threads
112,378
Messages
1,067,913
Members
146,033
Latest member
Spelunkaria
Top