Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem with the setstats command #717

Closed
yuexuanblog opened this issue May 9, 2022 · 2 comments
Closed

There is a problem with the setstats command #717

yuexuanblog opened this issue May 9, 2022 · 2 comments
Labels
bug Something isn't working todo Something to complete

Comments

@yuexuanblog
Copy link

The character status set by this command can only last once

Latest dev branch

For example, setstats ATK 30000, the attack power set by this command can only attack the target once, and then restore the previous attack power level
For example, setstats MHP 30000. After the health value set by this command is restored by using the heal command, the health value will return to the health value level before setting

@yuexuanblog yuexuanblog added the bug Something isn't working label May 9, 2022
@Lynricsy
Copy link
Contributor

Lynricsy commented May 9, 2022

However,if you only attack the monsters you spawned,the effect can last for a long time.Actually,this issue was mentioned many times,but no one fixed it.

@Birdulon
Copy link
Member

Birdulon commented May 9, 2022

The command sets the stat, it doesn't freeze it.
If you set your HP to 1000 and take damage, your HP won't be 1000 anymore.
If you set your ATK to 1000 and switch weapons, your ATK won't be 1000 anymore.
If you set your max HP to 1000 and switch artifacts, your max HP won't be 1000 anymore.
If you set your cooldown reduction to 100% and get hit by an Abyss Herald's slowing water attack, it won't be 100% anymore.

The issue is some actions in the game trigger a recalculation of stats that you may not expect, for instance attacking enemies can trigger all sorts of events.

@lunaticwhat lunaticwhat added the todo Something to complete label May 10, 2022
@Birdulon Birdulon mentioned this issue Jul 28, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo Something to complete
Projects
None yet
Development

No branches or pull requests

4 participants