[DiscordArchive] So, Foe, if I do it the way you talked about, would that work since I need to remove the stats on lo
[DiscordArchive] So, Foe, if I do it the way you talked about, would that work since I need to remove the stats on lo
Archived author: Sylian • Posted: 2024-05-18T21:12:44.540000+00:00
Original source
But doesnt it save the stats to the player in the DB if you logout?
Archived author: Foe • Posted: 2024-05-18T21:12:48.606000+00:00
Original source
no
Archived author: Sylian • Posted: 2024-05-18T21:17:21.518000+00:00
Original source
Okay, but I should still call the UpdateAllStats right?
Also, how would you make it if you didnt want to call that UpdateAllStats, since I guess I would need to call it sometime right?
Archived author: Sylian • Posted: 2024-05-18T21:17:37.026000+00:00
Original source
Or would I just call all the other functions that is included in it
Archived author: Foe • Posted: 2024-05-18T21:18:28.354000+00:00
Original source
I dunno, I'm not designing your system so I haven't looked at it more than at a glance
Archived author: Sylian • Posted: 2024-05-18T22:04:32.375000+00:00
Original source
I got it working with a custom function created that calls on a script where I then set the stat's value.
Now I just got to stop it from getting removed when an aura or buff has been applied.
Archived author: Rymercyble • Posted: 2024-05-18T22:09:12.348000+00:00
Original source
well u cant "stop it" from doing that what u need to do is to change process of calculating it to account for ur change....otherwise u will need to call it after any and every stat update
Archived author: Rymercyble • Posted: 2024-05-18T22:10:48.755000+00:00
Original source
im doing my stuff so same as foe i just quickly look at it and not rly think too deep into it so im still not sure what exactly u want to do and therefore cant tell more
Archived author: Sylian • Posted: 2024-05-18T22:23:56.510000+00:00
Original source
What I want to add is when you loot a certain item, you get an increase to a random stat out of the main ones, and, the system is account wide, so that means when players play on other characters, they can loot items that add more stats for all characters.
Archived author: Sylian • Posted: 2024-05-18T22:26:04.138000+00:00
Original source
I just dont really feel that it would be a good idea to call that UpdateAllStats function.
So I created a new function that can also be called from the lua part, where I just send the statID and amount with it.
This works fine, but the problem is that when the stats gets updated after new item equipped and aura applied, that removes the stat bonus, and I cant just call it again, because it doesnt know what amount it should increase with