How to add new resource bar (~another 'mana' bar)

How to add new resource bar (~another 'mana' bar)

WithinAmnesia's picture

How is it possible to add another resource bar to the heads up display?

I wish to add a 'Spirit' bar that is separate from mana and health and have some abilities use only 'Spirit'. Just like other RPGs have other resources bars for different types of spell casting that is not just Mana.

Also if adding 'Spirit' resource bar is possible how is it possible to add 'Spirit' character /  itemization attributes like 'Spirit' regeneration and drain? Also is it possible in general to modify a resource (health / mana / 'Spirit') by a %? Such as -10% Mana regeneration / + 2% Health regeneration?