# "Programmable" defense team?

**URL:** <https://community.gemsofwar.com/t/programmable-defense-team/14070>\
**Category:** Feature Requests and Game feedback\
**Created:** [October 20, 2016, 10:11am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070 "2016-10-20T10:11:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blue](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/blue/32/12434_2.png) [@Blue](https://community.gemsofwar.com/u/Blue)\
**Post date:** [October 20, 2016, 10:11am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/1 "2016-10-20T10:11:39Z")

</div>

**It isn’t important nor priority** feature, but might be interesting to **consider implementing when there will be space and time** for that.

So my idea was to implement some “simple” interface for a defending PVP team, where we as players can choose which gems AI should prioritize.

Example defense team:  
_Emperor Khorvash_ ( **Blue** / **Brown** )  
_Valkyrie_ ( **Red** / **Yellow** )  
_Giant Spider_ ( **Green** / **Blue** )  
_Morthani’s Scythe_ ( **Purple** )

My main damage source would be _Morthani’s Scythe_, so I would like to focus mostly on matching **Purple** gems, next in line I would like some **Yellows** for _Valkyrie_, then **Blue** , **Green** , **Brown** for _Spider_ and _Khorvash_ and **Red** at the end.

1. **Purple**
2. **Yellow**
3. **Blue**
4. **Green**
5. **Brown**
6. **Red**

There could be a little **table** , **row** or **column** where we would drag gem colors in an order which we would like the AI to priority. We **wouldn’t have to fill all of the colors too** , ones put would be just prioritized over the rest. **Leaving everything blank** would use default AI.

I do not exactly know how current AI works, is it picking gems by any priorities, does it sometimes take gems just to block player or is it just all more or less “random” 😉

Of course playing GoW isn’t as simple as that, same teams can be played differently based on what opponent they face… but I’m just asking if it could be (if any) **improvement** / **good addition** to the AI? What about adding **skulls** into pool?

---

<div class="post-metadata">

**Author:** ![Annaerith](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/annaerith/32/13840_2.png) [@Annaerith](https://community.gemsofwar.com/u/Annaerith)\
**Post date:** [October 20, 2016, 10:40am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/2 "2016-10-20T10:40:00Z")

</div>

in a programmable defense ai id like:

1. to choose **color priorities** for feeding your team with gem matches  
(example 1-1st\_ally 2-skulls 3-3rd\_ally 4-starve\_enemy 5-2nd\_ally)

2. to choose **priority action, for each unit separately** prioritising either:  
-skulls  
-cast  
-extra turns  
(for example sheggra 1-cast 2-extra turns 3-skulls)

3. to choose **priority of unit casts**  
(for example 1-sheggra 2-bat 3-valkyrie etc)

sure would love super advanced programmable defense ai with stuff like ‘if health below’ ‘if enemy mana \>=’ etc but that i think would be asking for too much 😃

---

<div class="post-metadata">

**Author:** ![Kharybdys](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/kharybdys/32/2023_2.png) [@Kharybdys](https://community.gemsofwar.com/u/Kharybdys)\
**Post date:** [October 20, 2016, 10:43am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/3 "2016-10-20T10:43:53Z")

</div>

It would already be a huge improvement if the AI would take into account defensive traits/status effects (stoneskin, entangle) and consider leaving skulls lying around for the opponent if them taking it wouldn’t do much and you taking it wouldn’t do much either.

---

<div class="post-metadata">

**Author:** ![Annaerith](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/annaerith/32/13840_2.png) [@Annaerith](https://community.gemsofwar.com/u/Annaerith)\
**Post date:** [October 20, 2016, 10:51am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/4 "2016-10-20T10:51:32Z")

</div>

yeah but i like the idea of programmable defense to be still abusable and also failurable if you dont programm it right (and still abusable a little even when you do programm it right). dont want just aurtomated-god-mode to get by default. the default the way it is now gives a fair chance for players to fight against it.

---

<div class="post-metadata">

**Author:** ![Blue](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/blue/32/12434_2.png) [@Blue](https://community.gemsofwar.com/u/Blue)\
**Post date:** [October 20, 2016, 11:05am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/5 "2016-10-20T11:05:22Z")

</div>

While I was making this post I really wanted to take into consideration things like prioritizing abilities, or preferable order of casts, but at the very end decided to stay at **simplicity**. Giving a player some control over how he wants his team to be played. For more advanced stuff there has to also be more advanced GUI and GoW has it pretty simple - that one feature would stand out if it’d went overboard.

---

<div class="post-metadata">

**Author:** ![Kharybdys](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/kharybdys/32/2023_2.png) [@Kharybdys](https://community.gemsofwar.com/u/Kharybdys)\
**Post date:** [October 20, 2016, 11:10am UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/6 "2016-10-20T11:10:23Z")

</div>

Which is also why I suggested to first look at “relatively” simply ways to improve the current AI before making it programmable. Skull-baiting the AI is too simple right now, and I don’t think it suddenly becomes a god-mode AI if it would start deciding to leave skull matches lying around and take mana instead. It would still misfire most spells (not focusing single target spells on one enemy, taking the wrong color to convert etc etc).

It’d be something else if it gets extended to make 3-matches because that match will drop a 4-match or better or other similar look-ahead type moves. But I wouldn’t suggest to start doing that.

---

<div class="post-metadata">

**Author:** ![brandonwiker](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/brandonwiker/32/14837_2.png) [@brandonwiker](https://community.gemsofwar.com/u/brandonwiker)\
**Post date:** [October 20, 2016, 12:13pm UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/7 "2016-10-20T12:13:17Z")

</div>

This would be an awesome step forward. I don’t have any faith in my defense team.

---

<div class="post-metadata">

**Author:** ![Robert](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/robert/32/12802_2.png) [@Robert](https://community.gemsofwar.com/u/Robert)\
**Post date:** [October 20, 2016, 12:27pm UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/8 "2016-10-20T12:27:18Z")

</div>

Y’all want to lose and slow down the process? That’ll be fun

---

<div class="post-metadata">

**Author:** ![Kharybdys](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/kharybdys/32/2023_2.png) [@Kharybdys](https://community.gemsofwar.com/u/Kharybdys)\
**Post date:** [October 20, 2016, 12:27pm UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/9 "2016-10-20T12:27:46Z")

</div>

I want a bit more challenge than currently

---

<div class="post-metadata">

**Author:** ![Annaerith](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/annaerith/32/13840_2.png) [@Annaerith](https://community.gemsofwar.com/u/Annaerith)\
**Post date:** [October 20, 2016, 12:33pm UTC](https://community.gemsofwar.com/t/programmable-defense-team/14070/10 "2016-10-20T12:33:04Z")

</div>

i want the ai to have flaws but not necesarely the same flaws for each fight. a little harder but sounds fun 😛
