SphereCommunity
hits/stam/mana modifiers existing? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: hits/stam/mana modifiers existing? (/Thread-hits-stam-mana-modifiers-existing)



hits/stam/mana modifiers existing? - Artyk - 06-26-2015 10:12 PM

Hi guys,
are there internal variables to store modifiers for hits/mana/stam like <OSTR> + <MODSTR> = <STR> ?
I tried MODMAXHITS but it seems to be a function that only adds to the current MAXHITS

Thanks


RE: hits/stam/mana modifiers existing? - XuN - 06-27-2015 01:01 AM

There's no hardcoded support for these properties ... however, if they were, it would work the same way: MaxHits = <BaseMaxhits> + <ModMaxHits>.

I used to simulate it in @UserStats:
Code:
[function f_stats_control]            //called in ON=@UserStats
maxhits=<eval <def.server_players_stats_base_maxhits>+<tag0.stat.maxhits>+<tag0.HitpointIncrease>>
maxmana=<eval <def.server_players_stats_base_maxmana>+<tag0.stat.maxmana>+<tag0.manaincrease>>
maxstam=<eval <def.server_players_stats_base_maxstam>+<tag0.stat.maxstam>+<tag0.StaminaIncrease>>

This converted MaxHits in the sum of that custom def + custom tag storing current MaxHits (the real one, if you prefer) + bonus of MaxHits.