Jump to content

I need help about my character abilities


Recommended Posts

you gave 4 lines of information. my brother in christ you will prob not get much help. All i an give is this.

BATTLESONG_ATTACH_RADIUS = 12,
        BATTLESONG_DETACH_RADIUS = 16,

        INSPIRATION_MAX = 100,
        INSPIRATION_GAIN_RATE = 0.024,
        INSPIRATION_GAIN_EPIC_BONUS = 3,
        INSPIRATION_DRAIN_RATE = -2,
        INSPIRATION_DRAIN_BUFFER_TIME = 7.5,

        MAX_ACTIVE_SONGS = 3,
        SONG_REAPPLY_PERIOD = .5,
        SONG_REFRESH_PERIOD = 1,
 

This is in tuning for wigfrid. i guess you could do like (BUFFNAME)_ATTACH_RADIUS = (number)  (BUFFNAME)_DETACH_RADIUS = (number)

Link to comment
Share on other sites

My brother in christ, I will begin by saying that I am no expert in this matter, but as I see not many people responded, here's how I'd do it:

if GetPlayer().prefab == "YOUR CHARACTER'S NAME HERE" then
        inst:AddComponent("sanityaura")
        inst.components.sanityaura.aura = TUNING.SANITYAURA_MED
end

And just replace YOUR CHARACTER'S NAME HERE with the name of the character this is for.

Good luck and I hope I was able to help. :3

Link to comment
Share on other sites

The global function FindPlayersInRange will return a table of all available players within the given range:

local x, y, z = inst.Transform:GetWorldPosition() -- inst here would be your character
local players = GLOBAL.FindPlayersInRange(x, y, z, YOUR_RADIUS_HERE, true) -- true ensures player is alive

 

Edited by w00tyd00d
Link to comment
Share on other sites

On 7/25/2022 at 7:52 PM, mexican geek said:

My brother in christ, I will begin by saying that I am no expert in this matter, but as I see not many people responded, here's how I'd do it:


if GetPlayer().prefab == "YOUR CHARACTER'S NAME HERE" then
        inst:AddComponent("sanityaura")
        inst.components.sanityaura.aura = TUNING.SANITYAURA_MED
end

And just replace YOUR CHARACTER'S NAME HERE with the name of the character this is for.

Good luck and I hope I was able to help. :3

thanks 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...