Trying to make a system similar to smashcraft where two of the heroes have guns, might be 3 actually, and when you use the ability it fires in that direction until the ammo runs out. I'm not entirely sure how to set it up but I think I have a rough idea.
Would it be a create persistent and at the end of the persistent it would deal damage and every time it deals damage it cost a charge? If that is right that would just leave me with how to create the charges and how to "reload the gun."
I was asking if my idea would work. I didn't mean line of sight like that. I just meant shoot wherever and will keep shooting. Eventually, I'll make it where the unit will turn based on mouse position.
Still looking for an answer. I have another spell that would need to channel. It's a blizzard spell, probably should have done it during the WDE, that the caster will continue to cast as long as they have energy and they don't get hit. How would I create that?
"As long as they have energy"
Create a validator that compares vitals, set the vital to energy, operation or w/e the field is called to "Equal to or Greather Than", value to the energy per tick, and add that as the periodic validator (if you're using a behavior, add it as the remove validator)
"as long as they don't get hit"
Create a destroy persistent (or remove behavior if youre using behaviors) effect that removes the persistent, add a behavior with infinite duration to your unit and set the destroy persistent as it's damage response. Make the persistents final effect remove the behavior or use a validator to remove it (if you know how to set up validators that check the existence of the persistent or whether a unit is currently casting/channeling)
Check the "Channeling" and "Channeled" flags on the persistent (Not sure which one is the right one)
That helped. Although, it made the ability require a target now, simple fix. Do you know how to do what I was tlaking about in the first post? I can't figure out how to make it consume charges as I can't find cost in persistent or anywhere else except in the ability tab, which I think that would only apply the cost once.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Trying to make a system similar to smashcraft where two of the heroes have guns, might be 3 actually, and when you use the ability it fires in that direction until the ammo runs out. I'm not entirely sure how to set it up but I think I have a rough idea.
Would it be a create persistent and at the end of the persistent it would deal damage and every time it deals damage it cost a charge? If that is right that would just leave me with how to create the charges and how to "reload the gun."
@Keyeszx: Go
The charges are somewhere in cost I think, then there is probably an ability that you might have to connect with a trigger to "recharge" the attack.
As for the attacks dealing damage in a line on impact, you might look at raynor commando's snipe ability.
@Hubris8: Go
I was asking if my idea would work. I didn't mean line of sight like that. I just meant shoot wherever and will keep shooting. Eventually, I'll make it where the unit will turn based on mouse position.
Still looking for an answer. I have another spell that would need to channel. It's a blizzard spell, probably should have done it during the WDE, that the caster will continue to cast as long as they have energy and they don't get hit. How would I create that?
"As long as they have energy"
Create a validator that compares vitals, set the vital to energy, operation or w/e the field is called to "Equal to or Greather Than", value to the energy per tick, and add that as the periodic validator (if you're using a behavior, add it as the remove validator)
"as long as they don't get hit"
Create a destroy persistent (or remove behavior if youre using behaviors) effect that removes the persistent, add a behavior with infinite duration to your unit and set the destroy persistent as it's damage response. Make the persistents final effect remove the behavior or use a validator to remove it (if you know how to set up validators that check the existence of the persistent or whether a unit is currently casting/channeling)
Check the "Channeling" and "Channeled" flags on the persistent (Not sure which one is the right one)
That helped. Although, it made the ability require a target now, simple fix. Do you know how to do what I was tlaking about in the first post? I can't figure out how to make it consume charges as I can't find cost in persistent or anywhere else except in the ability tab, which I think that would only apply the cost once.