Doodle Monster Posted July 10, 2025 Share Posted July 10, 2025 Hi! So as the title says i'm trying to add the gestalt attack to my moded character. Here's my function and where it's called. Right now it's crashing and I think it also isn't runing my other function that spawns fx when she's above a sanity threashold. Any help would be really awesome! I do plan on releaseing her to the workshop along with Wramp, so stay tuned for that. local function WendalynGestaltAttack(inst, owner, data, target) if owner ~= nil and (owner.components.health == nil or not owner.components.health:IsDead()) then local target = data.target if target and target ~= owner and target:IsValid() and (target.components.health == nil or not target.components.health:IsDead() and not target:HasTag("structure") and not target:HasTag("wall")) then -- In combat, this is when we're just launching a projectile, so don't spawn a gestalt yet if data.weapon ~= nil and data.projectile == nil and (data.weapon.components.projectile ~= nil or data.weapon.components.complexprojectile ~= nil or data.weapon.components.weapon:CanRangedAttack()) then return end local x, y, z = target.Transform:GetWorldPosition() local gestalt = SpawnPrefab("alterguardianhat_projectile") local r = GetRandomMinMax(3, 5) local delta_angle = GetRandomMinMax(-90, 90) local angle = (owner:GetAngleToPoint(x, y, z) + delta_angle) * DEGREES gestalt.Transform:SetPosition(x + r * math.cos(angle), y, z + r * -math.sin(angle)) gestalt:ForceFacePoint(x, y, z) gestalt:SetTargetPosition(Vector3(x, y, z)) gestalt.components.follower:SetLeader(owner) if owner.components.sanity ~= nil then owner.components.sanity:DoDelta(-1, true) -- using overtime so it doesnt make the sanity sfx every time you attack end end end end Here's where it's being called along with my other Fx function inst.components.combat.onhitotherfn = WendalynMoonWeaponFx inst.components.combat.onhitotherfn = WendalynGestaltAttack If you need my mod to look at I can provide my prefab files and such. Again, any help would be really appreciated! Here's the characters i'm working on! just incase anyone was interested. Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/ Share on other sites More sharing options...
Edible Coal Posted July 16, 2025 Share Posted July 16, 2025 no crash reason? Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1826995 Share on other sites More sharing options...
Doodle Monster Posted July 16, 2025 Author Share Posted July 16, 2025 Whoops, i'll send the crash the next chance I get Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1826996 Share on other sites More sharing options...
Doodle Monster Posted July 16, 2025 Author Share Posted July 16, 2025 I'll try and have the crash by tommrow. my schedual is pretty busy right now. Thanks for taking a look at the problem! Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1826997 Share on other sites More sharing options...
Doodle Monster Posted July 16, 2025 Author Share Posted July 16, 2025 I'll send my scripts file as well wendalyn.lua Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1826999 Share on other sites More sharing options...
Doodle Monster Posted July 17, 2025 Author Share Posted July 17, 2025 @Edible Coal Sorry for the ping! Just wanted to make sure you get the notification, I'm pretty sure since i'm a new user people haven't been getting notified. Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1827105 Share on other sites More sharing options...
Doodle Monster Posted July 19, 2025 Author Share Posted July 19, 2025 (edited) If anyone is reading this I Still do need help, Haven't been able to figure it out yet. Any help would be really appreciated! Edited July 19, 2025 by Doodle Monster Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1827644 Share on other sites More sharing options...
Doodle Monster Posted July 20, 2025 Author Share Posted July 20, 2025 Okay, I got it to not crash. However my oth er FX function isn't being called and the gestalt attack isn't working either. Here's my updated prefab file for the character. wendalyn.lua Link to comment https://forums.kleientertainment.com/forums/topic/166940-help-adding-enlightened-crown-damage-to-moded-character/#findComment-1827719 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now