XCOM 2
Raider Faction: SCP Foundation Mobile Task Forces
RedDobe Jul 19, 2020 @ 10:52pm
Scramble Gear Not right
Hey Puma. I was looking through your scramble gear aim ability, and I believe this may be the problem. Here is an example of how you add multiple bonuses to an ability:
PersistentStatChangeEffect = new class'X2Effect_PersistentStatChange'; PersistentStatChangeEffect.BuildPersistentEffect(1, true, false, false); PersistentStatChangeEffect.SetDisplayInfo(ePerkBuff_Passive, Template.LocFriendlyName, Template.GetMyLongDescription(), Template.IconImage, false, , Template.AbilitySourceName); PersistentStatChangeEffect.AddPersistentStatChange(eStat_HP, default.ARCHON_VEST_HP_BONUS); PersistentStatChangeEffect.AddPersistentStatChange(eStat_Mobility, default.ARCHON_VEST_MOB_BONUS); Template.AddTargetEffect(PersistentStatChangeEffect);

You only need to declare the new class, build the persistent effect, and add the effects one time together. I am not entirely sure if this is what is causing the bug, it's very possible.
Last edited by RedDobe; Jul 19, 2020 @ 11:00pm
< >
Showing 1-5 of 5 comments
RedDobe Jul 19, 2020 @ 10:59pm 
Also it's missing the display info in the damage preview, needs something like
[PersistentStatChangeEffect.SetDisplayInfo(ePerkBuff_Passive, Template.LocFriendlyName, Template.GetMyLongDescription(), Template.IconImage, false, , Template.AbilitySourceName);
Last edited by RedDobe; Jul 19, 2020 @ 11:00pm
Puma_The_Great  [developer] Jul 20, 2020 @ 8:56am 
Thank you very much. I fixed the previews depicting the stat boosts, but I failed to fix the issue with damage boosts and previews, so i just deleted that part xd. Stat boosts and immunities should be enough.
HATERADE Dec 6, 2020 @ 10:29am 
I think the scramble gear is still bugged. Like it won't let me use the upgrade kits. I've found that if I give out all the scramble gear that I have in my armory, then build a new one, then I can upgrade that one, but the rest of the inventory is bugged. Not sure how helpful this is. Great mods, I am a subscriber and follower of them all!
Puma_The_Great  [developer] Dec 16, 2020 @ 10:44am 
@Haterade, so you mean that when you have scramble gears used by soldiers, you can't upgrade none of them?
Puma_The_Great  [developer] Dec 16, 2020 @ 11:07am 
@Haterade, I noticed that after upgrading the scramble gear to mk2, the base item is not removed correctly for some reason, creating a wierd bugged item, but when I equipped it to someone and disequipped it disappeared (?). Other than that, I could still upgrade the scramble gear as long as i had elerium and upgrade kits, so I wasn't fully able to replicate the bug.
< >
Showing 1-5 of 5 comments
Per page: 1530 50