What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

MaxEnduranceCharges - how to check?

Nepthys

Community Developer
Joined
Oct 13, 2014
Messages
89
Reaction score
1
hey all :)

improving the logic for 'enduring cry' so its not spammed all the time, and to try increase uptime between mob packs
how can I check the maximum endurance charges for the player?

tried things like LokiPoe.Me.MaxEnduranceCharges without success
StatType.MaxEnduranceCharges compiles, but the value is 183, which seems overpowered ;)


Thanks!
 
hey all :)

improving the logic for 'enduring cry' so its not spammed all the time, and to try increase uptime between mob packs
how can I check the maximum endurance charges for the player?

tried things like LokiPoe.Me.MaxEnduranceCharges without success
StatType.MaxEnduranceCharges compiles, but the value is 183, which seems overpowered ;)


Thanks!
Dunno try this
Loki.Game.Objects.Actor.EnduranceCharges
 
To work with stats, you need to use the GetStat function with the stat id itself.

var maxEnduranceCharges = LokiPoe.Me.GetStat(StatType.MaxEnduranceCharges);

That will return how many endurance charges are allowed for your character. GetStat also exists for other things as well, like Skills, Items, Chests, etc..., so you can use similar functions for each.

One thing to keep in mind with the Stat system is that it's very broad, and things might not always work the way you expect. There's 1000s of stats, but each one has a different context in which it's valid. There's no way to know if a stat will give you what you want unless you try it and check the value under different scenarios.
 
Back
Top