Notifications
Clear all

Rigging Mana Slider

solarmanJc
(@solarmanjc)
Active Member

Hello Everyone 

I am using Spellcasting  Package.. Plus I am Using Mana With The Spell Casting Motion Pack

So I have a Question ? 

Anyone know how to rig the Magic Missile Mana Spell to the Mana Bar ?

Thank you 

 

Quote
Topic starter Posted : 26/01/2021 3:24 pm
solarmanJc
(@solarmanjc)
Active Member

So No Comments wow

No one knows 

ReplyQuote
Topic starter Posted : 29/01/2021 10:39 am
Tim
 Tim
(@timtryz)
Member Admin

Hey Jody,

 

The Mana Bar is typically a user interface image. It grows and shrinks because you tell it what percentage or number the mana value currently is.

https://weeklyhow.com/how-to-make-a-health-bar-in-unity/

 

I explain how to get the mana value in this post:

https://ootii.com/knowledge-base/mana/

 

 

I also explain how to use the mana value in spells. 

 

If you mean only allow the Magic Missile Mana Spell to cast if there mana, I show that in the post above.

I’ve added the “Test Mana” node to see if we have enough mana. So, I add a “Test Attribute Int” node and renamed it. As you can imagine, the attribute we’ll test is if the “Mana” attribute is >= 10.

 

If you mean take mana away from the mana pool when the spell is cast, that's shown in the post too.

If the “Test Mana” node succeeds, we need to reduce the Mana attribute by 10 since we’re casting the spell. We do that with the “Set Attribute” node that I renamed.

 

So, I’m not sure what you mean by “rig the Magic Missile Mana Spell to the Mana Bar”. If you can be more specific, I’ll try to help more.

 

Thanks,

Tim

ReplyQuote
Posted : 30/01/2021 7:36 pm
Share: