Author Topic: How to calculate the maximum and minimum values of such affixes  (Read 113 times)

contra

  • Founder
  • Nameless
  • *
  • Posts: 67
  • Karma: 0
http://www.hellgateaus.info/wiki/Affixes

for example

Affixes Name: Igniting
Effect: Adds (1 + [30 - 35] * sfx_attack / 50) to Ignite Attack Strength
Item Levels: 62
Requirement: (ilevel_feed * 8%) Will

What's mean with "sfx_attack " and "ilevel_feed "? If the item level is 62, how do I substitute a specific value?
MAN in the mirror...

Malachor

  • Developer
  • Great Eye / First
  • ****
  • Posts: 2034
  • Karma: 25
That doesn't look that easy to read, so I'll post what I see in reanimator:
SetStat673('sfx_attack', 'fire', 1 + rand(@game4, 30, 35) * item_level_sfx_attack($unit->GetStat666('level')) / 50);
Alright, this probably isn't much better.
sfx_attack, fire is the ignite attack strength
1 + rand@(30 , 35) add a random value between 30 and 35 to 1
multiply that by the sfx_attack_ability(from the Item Levels file)
and divide by 50.
I will say that I don't know if it's like this:
31 * 270(for a 50th level item) / 50 = 167.4
or like:
1 + 30 * 270 / 50 = 163
You would need to note the ingame value then compare this formula to it.

ilevel feed, well there happens to be a feed column in Item Levels
at 50th level it's 83
So my guess is that it's 83 * 0.08 = 6.64 will feed, but that seems a bit low.
Again, having the ingame value to compare against would help.

contra

  • Founder
  • Nameless
  • *
  • Posts: 67
  • Karma: 0
Thank you for your answer, already clear.
MAN in the mirror...