in this tutorial I show you one way to do a salvage ability. (When I looked at the bunker this was confusing, since it references abilities that are not used and it looks like, the bunker's salvage has been redone.). In order to give a stalker a refund ability, we need an ability, that applies a temporary behavior of type buff (this is the salvage duration), which finally applies a Modify Unit Effect (SalvageShared (Unnamed)).
The Unit
The Ability
The Behavior
The Effect
The Effect is the already existing SalvageShared (Unnamed) Modify Unit Effect.
In order to show a refund text, we need to create a Text Actor once the Effect is done:
The bunker also displays a "salvaged" text to enemies. If you want to do that, you duplicate the Text Actor and Change the Filter from Enemy to Self, Ally.
The Bunker shows a link to "[Ability] Salvage - Bunker" which is never used.
"[Ability] SalvageBunker - Refund" does nothing but displaying both messages (the mineral and the "salvaged" message)
There seem to be two versions in the Code, one starts with "[Ability] Salvage", the other "[Ability] Salvage - Bunker" is not used.
The "[Ability] Salvage" variant uses the bunkers actor to create the text actor that displays the minerals (ConstructSalvageTerranBunker
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
in this tutorial I show you one way to do a salvage ability. (When I looked at the bunker this was confusing, since it references abilities that are not used and it looks like, the bunker's salvage has been redone.). In order to give a stalker a refund ability, we need an ability, that applies a temporary behavior of type buff (this is the salvage duration), which finally applies a Modify Unit Effect (SalvageShared (Unnamed)).
The Unit
The Ability
The Behavior
The Effect
The Effect is the already existing SalvageShared (Unnamed) Modify Unit Effect.
In order to show a refund text, we need to create a Text Actor once the Effect is done:
The link to the unit's actor:
The Text Actor:
The Text Mover:
I hope that helps.
Notes