Jump to content

QuestState:ProcessFighter called before team assignment


Recommended Posts

So I want to add "WANTED_DEAD" to an agent depending on whether they are on your team or not during a quest. What I did is compare the fighter team ID to TEAM.RED. However, when process_fighter is called, no team has been assigned to the fighter. Is there an alternative way to check their team?

  • Developer

Unfortunately as you say, process_fighter that applies after a Fighter has been constructed but before it's been officially added to any battle.

One thing you could try is supplying an OnBattleEvent function in your mod and intercepting BATTLE_EVENT.ACTIVATED_FIGHTER.  At that point, the fighter will have been assigned a team, and you could iterate through the active quests to see if they'd like to handle fighter activation, similar to what process_fighter does.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...