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. 

Check if strength increased, If it increased then increase Health by 20.

I want to increase my health by 20 whenever my character gets 1 strength, or 10 mana per 1 intelligence.

Or how can I just check whether a value increased or decreased. If it increased do something, if it decreased do something.

A blueprint demonstration would be much appreciated. Thanks in Advance!

Product Version: UE 4.19
more ▼

asked May 21 '18 at 07:04 AM in Blueprint Scripting

avatar image

39 1 4 5

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

1 answer: sort voted first

Can you make a screenshot of your blueprint? How does strength and intelligence increase, is it whenever something which triggers a strength or intelligence increase happens it is increased by 1 or do you increase it in smaller portions like 0.1 for example?

more ▼

answered May 21 '18 at 07:40 AM

avatar image

46 4 13 10

avatar image TheSteelJC May 21 '18 at 08:10 AM

I don't have the blueprint yet. I am still solving it by writing it in a paper.

Like in dota bro. When a hero leveled up It gains 2 strength, 1 agility, 2 intelligence. Each of these attributes provides the hero an increase on health, mana, and attack speed depending on the increased attribute. In this case I want my character to get 20 health when my character level up it gets 1 strength, and 1 intelligence yields 10 mana. What I want is give my character 20 health every time it gets 1 strength from leveling up.

avatar image Silensir May 21 '18 at 08:48 AM

I have never played dota :l, But I think I understand :). I hope this solves your problem, let me know If I got it wrong. The first one is for if you are only ever gonna change it by a value of 1. The second one is for if you think you might increase it by a different value some time. In this case you could change out the literal float for a variable if you like. You don't have to use them both, pick whichever suits your system. alt text

Hope this helped :3

example-bp.png (193.7 kB)
avatar image TheSteelJC May 21 '18 at 09:47 AM

Thanks man you just saved my time. +1

avatar image mightyenigma May 21 '18 at 05:08 PM

I would recommend you make a struct or map for this, because leveling up in MOBAs is not on a linear scale, i.e. it doesn't change by the same amount every level.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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