# \[SUPPORT\] Advanced Turn Based Tile Toolkit

**URL:** <https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [February 26, 2015, 8:30am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930 "2015-02-26T08:30:16Z")\
**Posts on this page:** 20\
**Page:** 194

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [September 29, 2021, 4:41pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3970 "2021-09-29T16:41:49Z")

</div>

> [@ser.man94](#):
>
> Good day. on the end of video hmm system part 3 [https://www.youtube.com/watch?v=srroYhYhaig&list=PLNiHDaJeqA16CsnxJJDjG9qgubj15jXKF&index=16](https://www.youtube.com/watch?v=srroYhYhaig&list=PLNiHDaJeqA16CsnxJJDjG9qgubj15jXKF&index=16). you add an 2d unit from hmm2. How you duit?

Hi, I used a puppet with a 2D sprite for that one. Similar to what I do in the 2D example map HydrasLair.

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 1, 2021, 11:33am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3971 "2021-10-01T11:33:43Z")

</div>

thank you. How to make a wait sistem. then the unit not make any move and go to the end.

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 2, 2021, 5:04pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3972 "2021-10-02T17:04:34Z")

</div>

Hey, could you elaborate a bit? Do you mean like in HoMM where you press wait and then the unit still gets to act this turn, but at the end of the turn?

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 2, 2021, 7:57pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3973 "2021-10-02T19:57:32Z")

</div>

Yes [2021-10-02 22-56-35.mkv - Google Drive](https://drive.google.com/file/d/1mGrPj028XnYa2eBQ0sWS4nhkfTFU1kTt/view?usp=sharing) the unit after waith go to end.

---

<div class="post-metadata">

**Author:** ![dirkmcpherson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dirkmcpherson/32/88710_2.png) [@dirkmcpherson](https://forums.unrealengine.com/u/dirkmcpherson)\
**Post date:** [October 3, 2021, 12:35am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3974 "2021-10-03T00:35:14Z")

</div>

Hi ,

What if I wanted to connect the behavior of several units? What blueprints would I need to change?

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 3, 2021, 7:17pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3976 "2021-10-03T19:17:56Z")

</div>

> [@ser.man94](#):
>
> Yes [2021-10-02 22-56-35.mkv - Google Drive](https://drive.google.com/file/d/1mGrPj028XnYa2eBQ0sWS4nhkfTFU1kTt/view?usp=sharing) the unit after waith go to end.

Ok, I wrote a new function that should give you the same result as in HoMM:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/c/5cb69d7ae60e9c9e9cd0ddf6f221e9ff899001a0.jpeg)

How you call this is likely up to you. If you do it through a widget button or the like, make sure to validate that the current player actually owns the active unit, to prevent ending the turns of other factions. You can do this similar to the validation done when trying to end a unit’s turn in the Player Controller.

You will also need to add the following to the HoMM Turn Manager:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/5/c589b3ddf8b4aad84c3a492a9936bdcf89efb43e.png)

> [@dirkmcpherson](#):
>
> Hi ,
> 
> What if I wanted to connect the behavior of several units? What blueprints would I need to change?

Hi, I’m going to need a lot more info to understand exactly what you are asking about. Are you talking about multiple AI units coordinating their behavior?

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 4, 2021, 12:16am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3977 "2021-10-04T00:16:59Z")

</div>

The variable : Local Active Actor Initiative" exis or i mus creat this variable?

 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/e/0ee965a6733254f9befdcdd5d173050d5b4d1e96.png)  
[newvariable.txt](https://forums.unrealengine.com/uploads/short-url/wUeyqSurf0tZXKDGPSHlp3g7zFG.txt) (94.0 KB)  
i want to put waitin in abyliti wthi other abyliti  
 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/8/f8cc53faa006a141f5bfcd8848579fad0a736fd4.jpeg)

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 4, 2021, 9:00am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3978 "2021-10-04T09:00:28Z")

</div>

> [@ser.man94](#):
>
> The variable : Local Active Actor Initiative" exis or i mus creat this variable?
> 
> ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/e/0ee965a6733254f9befdcdd5d173050d5b4d1e96.png)  
> [newvariable.txt](https://forums.unrealengine.com/uploads/short-url/wUeyqSurf0tZXKDGPSHlp3g7zFG.txt) (94.0 KB)  
> i want to put waitin in abyliti wthi other abyliti  
> ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/8/f8cc53faa006a141f5bfcd8848579fad0a736fd4.jpeg)

that local variable will need to be created. I made it as a local variable within the function. As a rule any variable I call “local” is a local variable that only exists within that function.

You could add it as an ability, sure. Just call the Turn Manager function from that ability’s ExecuteAbility function.

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 7, 2021, 10:32pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3979 "2021-10-07T22:32:48Z")

</div>

Thank you. it is possible to separate range attack and melee for cheange atack damage range. for example some units have range atack 5-15 and mele 30-40 and defens from different types? Use 2 different ability.

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 9, 2021, 4:43pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3980 "2021-10-09T16:43:13Z")

</div>

Yes, shouldn’t be too hard. Make separate variables for these two types of damage on the HoMM unit. When setting the damage of the ability, get the value of one or the other depending on the Range variable of the attack.

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 9, 2021, 5:06pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3981 "2021-10-09T17:06:11Z")

</div>

thank you. the are can cheange the last point wath respond for attack? on map to remove last point deservet fo attack and for other unit make 2 times attack?

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 11, 2021, 9:11am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3982 "2021-10-11T09:11:05Z")

</div>

Not sure if I understand. Do you want to make it so that some units can counter attack many times and other units cannot counter attack at all? If so you could add an integer variable to BP\_Unit\_HoMM which holds the number of allowed counter attacks. You could have one for Max and one for Current, similar to what is done for Action Points. When the unit does a counter attack your would subtract 1 from current. Before a counter attack you would check Current and see if it is greater than 0 before allowing a counter attack. When the unit is refreshed you would set Current to Max, similar to what I do with Action Points (CurrentAP).

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 11, 2021, 2:08pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3983 "2021-10-11T14:08:25Z")

</div>

I understan this.  
the question is

 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/5/55c8b3cc208d8bf272a4a8d9b33a4f149330b8a0.jpeg)  
i walk first time and attack  
 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/2/42f1e021ab4f68b1d352b30c6301fa3025bc697c.jpeg)  
and receive the return attack and the i can only attack no walking.  
in some old versionyou told the exist some data with point wath are restricted for atack and can by cheanget to 2 or to 0.

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 13, 2021, 10:34am UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3984 "2021-10-13T10:34:15Z")

</div>

> [@ser.man94](#):
>
> I understan this.  
> the question is
> 
> ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/5/55c8b3cc208d8bf272a4a8d9b33a4f149330b8a0.jpeg)  
> i walk first time and attack  
> ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/2/42f1e021ab4f68b1d352b30c6301fa3025bc697c.jpeg)  
> and receive the return attack and the i can only attack no walking.  
> in some old versionyou told the exist some data with point wath are restricted for atack and can by cheanget to 2 or to 0.

I’m afraid I still don’t understand completely what you mean. Is this the correct interpretation: You want to be able to move a unit to attack another unit, and then you want to be able to move it again after it has attacked?

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 13, 2021, 1:57pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3985 "2021-10-13T13:57:23Z")

</div>

> [@](#):
>
> o be able to move it again after it has attacked?

not move only attack second time.

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 13, 2021, 5:22pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3986 "2021-10-13T17:22:21Z")

</div>

ok, sorry but I’ll still need some clarification. So what you want to do is this:

1. move Unit 1 to Unit 2
2. Unit 1 attacks
3. Unit 2 counterattacks
4. Unit 1 can attack again if the player chooses

And step 4 is what is not working?

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 13, 2021, 5:23pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3987 "2021-10-13T17:23:35Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 15, 2021, 2:37pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3988 "2021-10-15T14:37:31Z")

</div>

ok, so you want to be able to move once, but to attack twice? See if this gets you the result you want. Set CurrentAP and MaxAP to 3. In BP\_Ability\_HoMM, set bUseEndsTurn to false and add the following:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/5/b5bf3069012f2fdbcb901f7b7c6c0ca4a0fd5b0c.jpeg)

---

<div class="post-metadata">

**Author:** ![ser.man94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ser.man94](https://forums.unrealengine.com/u/ser.man94)\
**Post date:** [October 15, 2021, 6:23pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3989 "2021-10-15T18:23:18Z")

</div>

No full in you manuai is 1 can walk and can atack but if i attack from first point i can do a second attack.  
but is need  
1 my unit walk and atack

 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/4/94f9713aaee9ec2d8beadc3883e6c62598f9d2a1.jpeg)  
2 receive the counter attack  
 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/1/d126053f58a9ed6b0c41ded2f6ca4af98f15e57b.jpeg)

3 i can only attack the same unit or other cant move.

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [October 16, 2021, 8:09pm UTC](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930/3990 "2021-10-16T20:09:09Z")

</div>

> [@ser.man94](#):
>
> No full in you manuai is 1 can walk and can atack but if i attack from first point i can do a second attack.  
> but is need  
> 1 my unit walk and atack
> 
> ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/4/94f9713aaee9ec2d8beadc3883e6c62598f9d2a1.jpeg)  
> 2 receive the counter attack  
> ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/1/d126053f58a9ed6b0c41ded2f6ca4af98f15e57b.jpeg)
> 
> 3 i can only attack the same unit or other cant move.

Sorry, I’m trying really hard to understand what you mean here, but I’m afraid I don’t.

The first two steps seem like the same as in my solution. Step 3 is where I struggle, though. Can you try to explain it in some different ways or in more detail? Perhaps it is a language issue? Could you try writing it in your native language and using Google translate?

How I am now interpreting what you are saying:

1. You want the unit to be able to first move to an enemy.
2. After the unit has moved you want it to be able to attack the enemy.
3. After it attacks the enemy, you want the enemy to counterattack.

So far, so good, right? Now for the final step you say: “i can only attack the same unit or other cant move.”

Do you mean that after you have attacked another unit, and that unit has counterattacked, you want to be able to choose to attack again, but only to attack that specific unit?

As for “or other can’t move”. By “or” do you mean that if you attack the enemy a second time, the enemy is allowed to move, but if you don’t attack the enemy a second time, the enemy is not allowed to move on its turn?

You include a screenshot of HoMM 3, and I can’t remember any such mechanic there, so I’m pretty sure I’m misunderstanding what you are saying. Sorry that I’m not able to understand this better, but I’m trying my best. If this is a mechanic in HoMM, perhaps you can show a video of how it works?

[Previous page](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930.md?page=193)

[Next page](https://forums.unrealengine.com/t/support-advanced-turn-based-tile-toolkit/21930.md?page=195)
