I've been trying to figure out how to make a weapon with a range of damage, such as ranging from 30-55 damage. So if you attack it might deal 30 damage one hit and then 40 another hit and after that 32. Basically randomly uses a number to deal damage within a range of numbers.
Also been wondering if this is possible with actors as well, can you make a number appear above a unit's head and show the damage dealt to that unit. Like white if you're dealing damage and red if you're receiving damage.
In damage effects, the "Effect - Random" field allows you to add additional random damage on top of the base damage.
For example, if "Combat - Amount" is 10 and "Effect - Random" is 5, it deals between 10 and 15 damage. It is also shown on the tooltip as well.
I am not very familiar with actors (in fact I hate them), however it is possible to do this in the trigger editor with Text Tags. I'll try and look for the old system I made for this combat text and edit this post if I find it.
Yeah, the data editor doesn't go into much detail about what each field does so its really easy to overlook things because it doesn't look like it will do what you want it to.
Also, I uploaded the example map to my first post.
I don't think so. Every time the text tags are made, they are removed after a few seconds. The GUI has it's own garbage collection system to remove memory leaks. From my understanding it will remove these tags after they finish their duration.
However I did write this for a single player environment, so I could clean it up a bit more to make it less laggy if it was moved to that scenario. I think it currently displays damage done by anyone to all players, which isn't really necessary.
Overall, I am not 100% sure if it will cause considerable lag to all players or not, but I am pretty sure it won't.
I've been trying to figure out how to make a weapon with a range of damage, such as ranging from 30-55 damage. So if you attack it might deal 30 damage one hit and then 40 another hit and after that 32. Basically randomly uses a number to deal damage within a range of numbers.
Also been wondering if this is possible with actors as well, can you make a number appear above a unit's head and show the damage dealt to that unit. Like white if you're dealing damage and red if you're receiving damage.
@Keyeszx: Go
In damage effects, the "Effect - Random" field allows you to add additional random damage on top of the base damage.
For example, if "Combat - Amount" is 10 and "Effect - Random" is 5, it deals between 10 and 15 damage. It is also shown on the tooltip as well.
I am not very familiar with actors (in fact I hate them), however it is possible to do this in the trigger editor with Text Tags. I'll try and look for the old system I made for this combat text and edit this post if I find it.
@VoidPotato: Go
Ok cool. I thought random effect would just use that solid number and add that on instead of ranging from 1, 2, 3, 4, 5.
@Keyeszx: Go
Yeah, the data editor doesn't go into much detail about what each field does so its really easy to overlook things because it doesn't look like it will do what you want it to.
Also, I uploaded the example map to my first post.
Saw the map. Will it cause a lot of lag if say 5v5 dota style map?
@Keyeszx: Go
I don't think so. Every time the text tags are made, they are removed after a few seconds. The GUI has it's own garbage collection system to remove memory leaks. From my understanding it will remove these tags after they finish their duration.
However I did write this for a single player environment, so I could clean it up a bit more to make it less laggy if it was moved to that scenario. I think it currently displays damage done by anyone to all players, which isn't really necessary.
Overall, I am not 100% sure if it will cause considerable lag to all players or not, but I am pretty sure it won't.