Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

What is the best way to cast spells with different mana point values?

I've recently created a mana/MP system, which works in a similar, if not the same way as a health system. I already know how to make projectiles and have made a few spells to be cast from the player.

My problem is trying to find the best way of telling the mana system what the incoming mana value is and then firing a specific spell. However I want more than one spell.

Do I store the mana cost of a spell within the projectile? (Using a BPI or Cast to Player using maths such as: "If the incoming mana value is higher than the current mana value, then do not cast, however if incoming mana is less or equal to the current mana, cast the spell")

Would I need to make an array or inventory?

As you can tell, I'm not much of a coder and I'm using Blueprint and hope to achieve the end result in blueprint.

I've currently made a custom event in my Character Blueprint to depletes mana. Whether this is the best way to go about depleting mana, I have no idea. Any help is welcome!

alt text

Product Version: Not Selected
manasystem.png (110.4 kB)
more ▼

asked Dec 18 '14 at 04:23 PM in Blueprint Scripting

avatar image

173 37 33 44

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question