About quick_attach_to_current_battle

Users who are viewing this thread

foxyman

Sergeant Knight
Hello! I'm here again to ask about the operation quick_attach_to_current_battle. What's the actual behavior or properties of it? I guess it attaches party to p_main_party or p_enemy_party as all the succeeding operations assumes such action performed. But where / when the attached parties are detached? I can't find any clue. Or they are automatically detached by game engine during battle conclusion?
 
With out looking at the code, I would think it's the same as when a party enters or leaves a town.  just spawn the party near the battle scene.
 
mnu_total_victory handles the consequences of winning.  You could look there for how it detaches the various participants.
 
Mordachai said:
mnu_total_victory handles the consequences of winning.  You could look there for how it detaches the various participants.
I've gone through that before this post, no detach thing. Neither is in the scripts called by it.
 
jik said:
With out looking at the code, I would think it's the same as when a party enters or leaves a town.  just spawn the party near the battle scene.

I thought this way as well before looking at the code. But the truth is, all the attach/ detach commands are used for party entering/leaving centers, and none for other things. The battles are clearly handled in a different way.
 
I'd like to know how to free the player's party from all attached parties.

The problem occurs when I join a fight between two parties and that another party was about to join my ally. If I click on "rush to the aid of Lord Y", the other party join my side (with the quick attach script). Then on the next menu, if I click on "leave" (instead of begining the fight), the parties which were about to join my side are in my party.

Could someone help me please?
 
Have you ever modified it? If not, I think it should be a bug of the native. Otherwise, try finding the code handling the menu after "Rush to aid ...", and add some detach code to detach all parties in the operation block of "leave" option.
 
Back
Top Bottom