# Multiple attack types

**URL:** <https://discourse.codecombat.com/t/multiple-attack-types/980>\
**Category:** Artisan\
**Created:** [July 6, 2014, 5:55pm UTC](https://discourse.codecombat.com/t/multiple-attack-types/980 "2014-07-06T17:55:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwhittaker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dwhittaker/32/2114_2.png) [@dwhittaker](https://discourse.codecombat.com/u/dwhittaker)\
**Post date:** [July 6, 2014, 5:55pm UTC](https://discourse.codecombat.com/t/multiple-attack-types/980/1 "2014-07-06T17:55:40Z")

</div>

Is it currently possible for a thang to have more than one attack type? I’m thinking something like a bow for long range and a sword for close range. Or even one type of bow shot for close range and another for long range.

I’m thinking that I’d like to be able to shoot a much longer shot but do a lower amount of damage, something like:

Range \< 25 --\> Damage = 10  
25 \< Range \< 40 --\> Damage = 5

Is this something that can be done currently? I’m thinking maybe it would need to be like the special attacks for tharin.

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nick/32/784_2.png) [@nick](https://discourse.codecombat.com/u/nick)\
**Post date:** [July 8, 2014, 10:53pm UTC](https://discourse.codecombat.com/t/multiple-attack-types/980/2 "2014-07-08T22:53:24Z")

</div>

Currently we have spells and the Magic System, and you could make a new spell that does damage, and implement it that way. Otherwise, the Combat System only knows about one `attack` per Thang. (It was written earlier, and not as flexibly). The special abilities that Tharin and Ironjaw have in Dungeon Arena are also an example of a way to do it, although you have to write a bit of extra code to add those separate actions for those.

---

<div class="post-metadata">

**Author:** ![dwhittaker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dwhittaker/32/2114_2.png) [@dwhittaker](https://discourse.codecombat.com/u/dwhittaker)\
**Post date:** [July 9, 2014, 1:01am UTC](https://discourse.codecombat.com/t/multiple-attack-types/980/3 "2014-07-09T01:01:27Z")

</div>

OK, well I was thinking of two different options for my archer:

1. He fires his arrows in two different ways, one for higher damage and close range, the other for lower damage and longer range.
2. He fires his arrows normally, but also has a sweeping melee attack that hits all enemies within very short distance. This would have a long cooldown.

Are these magic attacks something that I can create/edit in the editor, or something that would have to be done outside the editor and patched in?

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nick/32/784_2.png) [@nick](https://discourse.codecombat.com/u/nick)\
**Post date:** [July 9, 2014, 10:47pm UTC](https://discourse.codecombat.com/t/multiple-attack-types/980/4 "2014-07-09T22:47:06Z")

</div>

You can use the editor now to add new Components to add these extra actions (if doing it like, for example, `combat.Stomps`) or spells (if doing it like `magic.CastsXYZ`). As of today, you no longer need us to create the Components for you.

---

<div class="post-metadata">

**Author:** ![dwhittaker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dwhittaker/32/2114_2.png) [@dwhittaker](https://discourse.codecombat.com/u/dwhittaker)\
**Post date:** [July 10, 2014, 12:25am UTC](https://discourse.codecombat.com/t/multiple-attack-types/980/5 "2014-07-10T00:25:00Z")

</div>

OK, so something else for me to figure out. 🙂
