I have an ability- Im trying to make it so that everyone can react to its progress.
How would i go about making the progressbar visible? Thank you!
(So that all players can see the progressbar/castingbar)
I added a spell with a IntroCastTime (casting time).
I created a behavior with a duration greater then 0, hidden flag and with countdown display to everyone.
So we have a spell that has a casting time and we have a behavior that do nothing except show a progress bar.
Trigger
Event : When any ability is used, at the approch stage. I beleive I should have used Prep stage. Trigger that event.
Testing....Yah my bad, change Effect 1 - Approch for Effect 2 - Prep.
Cause approach trigger when the guy move to the correct range to cast the ability.. But we want the trigger to active when it stop and start the casting time. So I made a error on that.
So when we have a ability that is about to be casted. What we want to do now?
We want to add the behavior to the unit, which will display a countdown. The main issue is that... The countdown MUST be adjusted to the casting time of your ability.
So we do.
The variable Abil take the last ability casted.
Now we want to change the duration of the behavior to reflect the casting time. We use catalog value.
I use Catag Field Value Set (Which allow you to change the data through trigger during the game).
I want a behaviors as type.
We take our useless behavior which is named "Falsecountdown".
What we want to change? The duration
So we want to change it to... The spell duration using Catalog Field Value Get this time.
We want abilities
We specify which ability which is the variable Abil.
And we want the casting intro time which is the casting time.
End note
Basically when someone cast a spell you create a behavior that show visual countdown, that use the casting time of the ability as duration.
Sorry if its confusing english isn't my first language.
So fix the Effect1 - Approch to Effect 2 - Prep
And remove the second line for Catalog Set Value... I duplicated it like a idiot -.-' should just have one. Yes both isn't the same thing, but does the same.
I have an ability- Im trying to make it so that everyone can react to its progress. How would i go about making the progressbar visible? Thank you! (So that all players can see the progressbar/castingbar)
I supose you work on data. Since well that data forum..
Behavior -> Duration greater then 0. Display countdown -> Ally/Enemy/Neutral/Self
Should do it
^ That's duration, not progress. Duration is the grey bar, progress is teal/blue.
I'm 99% sure that this can't be done.
Oh yah -.-' retard I had in mind to use a dummy behavior during the casting animation should simply have say it.
Trigger -> Unit use ability In the pre-cast you apply a behavior.
Just throwing out a idea. Even if I am no fan of trigger.
@ILikeKillAndYou: Go
Is it possible to do with triggers if its not possible to do in data?
HOTS had some kind of progress bar model. Just texture swap it to look blue and make it a model attachment synced to the ability.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
How would i sync it to the ability?
Like that?
@ILikeKillAndYou: Go
If it shows up for everyone its awesome! Then its just what i need.
Would you care to explain how it works/what it does so i learn ^_^ I looked a bit at the trigger, but i didnt quite get it.
Thanks alot for your help!
Hum sure...
Data
I added a spell with a IntroCastTime (casting time).
I created a behavior with a duration greater then 0, hidden flag and with countdown display to everyone.
So we have a spell that has a casting time and we have a behavior that do nothing except show a progress bar.
Trigger
Event : When any ability is used, at the approch stage. I beleive I should have used Prep stage. Trigger that event. Testing....Yah my bad, change Effect 1 - Approch for Effect 2 - Prep.
Cause approach trigger when the guy move to the correct range to cast the ability.. But we want the trigger to active when it stop and start the casting time. So I made a error on that.
So when we have a ability that is about to be casted. What we want to do now?
We want to add the behavior to the unit, which will display a countdown. The main issue is that... The countdown MUST be adjusted to the casting time of your ability.
So we do.
The variable Abil take the last ability casted.
Now we want to change the duration of the behavior to reflect the casting time. We use catalog value.
I use Catag Field Value Set (Which allow you to change the data through trigger during the game).
So we want to change it to... The spell duration using Catalog Field Value Get this time.
End note
Basically when someone cast a spell you create a behavior that show visual countdown, that use the casting time of the ability as duration.
Sorry if its confusing english isn't my first language.
So fix the Effect1 - Approch to Effect 2 - Prep
And remove the second line for Catalog Set Value... I duplicated it like a idiot -.-' should just have one. Yes both isn't the same thing, but does the same.
@ILikeKillAndYou: Go
Just what i need :) Thanks!