Author Topic: Some armor recovery question/s  (Read 1074 times)

Offline mikKoi

  • Sergeant
  • **
  • Posts: 44
  • That's raider country!
    • View Profile
Some armor recovery question/s
« on: September 14, 2022, 10:24:35 pm »
Hey, I’m using mana as vitality and would like to recover time units like:

Code: [Select]
currentManaPercent: 0.8 #actual PERCENT of vitality now times 0.8
…but dunno how to do it. Maybe I need a script for it or use of that manaNormalized tag (which I don’t know how it works, so that’s an another question :P).

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Some armor recovery question/s
« Reply #1 on: September 14, 2022, 10:32:03 pm »
Code: [Select]
  manaNormalized: 80

equals to currentMana / maxMana * 80

Offline mikKoi

  • Sergeant
  • **
  • Posts: 44
  • That's raider country!
    • View Profile
Re: Some armor recovery question/s
« Reply #2 on: September 14, 2022, 10:36:41 pm »
OK it was it after all  :) Thank ya so muh!