Skip to content

Ambiant dialogue condition that indicates a back attack battle #807

Closed Answered by Tirlititi
Algarad asked this question in Q&A
Discussion options

You must be logged in to vote

Hello.

Don't you use BattleVoiceEffects.txt for that kind of things? It's meant to handle all these ambiant dialogs and it uses NCalc formulas instead of C# code.
With NCalc formulas, you can use IsBattlePreemptive and IsBattleBackAttack.

In terms of C#, you would use:

if (FF9StateSystem.Battle?.FF9Battle?.btl_scene?.Info != null && FF9StateSystem.Battle.FF9Battle.btl_scene.Info.StartType == battle_start_type_tags.BTL_START_FIRST_ATTACK)
    // Current battle started with a Preemptive strike
if (FF9StateSystem.Battle?.FF9Battle?.btl_scene?.Info != null && FF9StateSystem.Battle.FF9Battle.btl_scene.Info.StartType == battle_start_type_tags.BTL_START_BACK_ATTACK)
    // Current battle started…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Algarad
Comment options

You must be logged in to vote
1 reply
@Tirlititi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants