RageLeague Posted April 26, 2021 Share Posted April 26, 2021 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? Link to comment https://forums.kleientertainment.com/forums/topic/129329-queststateprocessfighter-called-before-team-assignment/ Share on other sites More sharing options...
Developer rooks Posted April 26, 2021 Developer Share Posted April 26, 2021 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. Link to comment https://forums.kleientertainment.com/forums/topic/129329-queststateprocessfighter-called-before-team-assignment/#findComment-1453042 Share on other sites More sharing options...
RageLeague Posted April 26, 2021 Author Share Posted April 26, 2021 I see. Well it's not terribly important that I use process_fighter for this purpose anyway. It only affects one option, really, and I can just use on_start_battle. Link to comment https://forums.kleientertainment.com/forums/topic/129329-queststateprocessfighter-called-before-team-assignment/#findComment-1453050 Share on other sites More sharing options...
Recommended Posts
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.