Closed ScanTpede closed 3 years ago
Hey @ScanTpede !
Right now, changing attack damage or health is not exposed, neither to blueprints nor to C++. If you're familiar with C++, you could change that in the RTSAttackComponent or RTSHealthComponent. In that case, I strongly recommend looking at Gameplay Abilities as well: https://docs.unrealengine.com/en-US/InteractiveExperiences/GameplayAbilitySystem/index.html
Best regards, Nick
@npruehs
On the topic of gameplay abilities, I'm wondering how you managed to setup the ability system workflow? I've watched your presentation and I think I have a rough idea but I'm unsure about the more specific steps.
My current thinking for implementing lets say an AOE damage ability is the following:
Do you think I'm on the right track?
Thanks for your time! Cheers
Hey @coolyoshi !
You're right about steps 1-3. Then, for A Year Of Rain, we handled "Use Ability" as just another order (similar to Move, Attack, etc.). So, instead of issuing an order with data like
OrderClass: MoveOrder TargetLocation: (3, 4, 7)
We've been issuing something along the lines of
OrderClass: UseAbilityOrder TargetLocation (3, 4, 7) Index: 2
with TargetLocation referring to the location the player clicked, and Index referring to the index of the ability we want to trigger (which we know about from step 1 :) )
From here, everything's "as usual", with selected actors moving into range of the ability (similar to Attack orders), and then just activate the ability by the means of the AbilitySystemComponent.
You might want to take a closer look at the open source code of our presentation, i.e.
Hope that helps!
Wow awesome thanks for the reply! I see, so I can use AbilityOrder and index of ability. l think I kind of get it now but will probably have to play around with the code a bit more, thanks again!
After a week of research, I finally manage to set Maximumhealth as varible in Blueprint. I'll left resolve step so nobody gets suffer from this. Hit me if I am using wrong method. Here is the step:
Thank you for the help. Regards,
Hi, First of all, I thank you for the plugin, it will save much time. I am implementing the plugin to my game, and got a problem. Unit stats from my game is vary too much(I'd say my unit is combination of 20 units) and I don't know how to set stats(mostly stats in the RTS categoty in details panel) like damage, health with variables in the plugin. I'll have to make tons of units if I can't resolve this. Do you know how to? Thank you for your time and if you have a question or request, please put them in the comment. Regards,