- flag <player> profile.one.stats.<[potion.status_id]>:+:<[potion.buff]> expire:<[potion.duration]>```
in this code i try to add like a buff amount to player stats and after a specefic duration i want this buff to be removed from the stats. the problem here is that when it expires it removes the entire amount in the stats as an example the player already have 30 strength in his stats but when he use the buff it add 10 more. after it expires it remove the whole flag. so can't i just remove a specefic value ?
#(real_devel) Expire a specefic amount on a flag
11 messages · Page 1 of 1 (latest)
(real_devel) Expire a specefic amount on a flag
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
you could use wait or runlater
if you had a pre written stat system & are trying to add buffs to it personally i'd have the buff as a separate status effect (eg profile.one.stat_buffs.id) & adjust the code that handles the application of the effect itself
that way you don't have to worry about flag expirations & waits/runlaters
though if you want to go that route i'd use runlater as it's persistent over restarts
Feel free to ask if you need any more help, otherwise -
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@nova nebula