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

Weird XP cost behavior #1388

Open
omgitsKit opened this issue Nov 15, 2024 · 4 comments
Open

Weird XP cost behavior #1388

omgitsKit opened this issue Nov 15, 2024 · 4 comments
Assignees
Labels

Comments

@omgitsKit
Copy link

Hello!

I’m trying to make a custom magic system that uses xp as casting resource. For testing purposes I’ve recreated Magic Missile with a cost of 5 xp points.

For some reason, in some cases, the first cast seems to consume 1 extra point, making, for example, a player only able to cast the spell 3 times while having 20 points when they’re supposed to cast 4 times.

It’s very inconsistent, and I noticed that this happens with 15, 20 and 50 points (haven’t tested beyond that). It consumes the intended value at 5, 10 and 25 - 45 for example.

@NathanWolf
Copy link
Member

Would you be able to share your spell config here?

@NathanWolf NathanWolf self-assigned this Nov 15, 2024
@omgitsKit
Copy link
Author

Sure! It's very straight foward tho, since I just replaced the mana cost to xp: 5 in every level.

Additionally, I've noticed the same issue with different spells and same numbers. For instance, a spell costing 10 xp sometimes would consume 11 xp.

missilexp.json

@NathanWolf
Copy link
Member

Thank you!

And can I also ask, what are you using to check player's XP? A command?

@omgitsKit
Copy link
Author

so sorry for the late reply. I used both vanilla /xp query and the placeholder %player_current_exp% from the Player Module (PlaceholderAPI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants