Change in status of a unit by specific condition.

 RichardCory


Join Date: 25 April 2013
Posts:26
Posted 11 May 2014 - 6:51 pm
Hi guys.
I would like to know how to make a unit's attack/hp increase with a kill or razings. Like 1 attack increase on every 5th kill or razing. Answers will be appreciated. Thanks in advance.
Link | Reply | Quote
 [GvR]Do0m


Join Date: 29 December 2009
Posts:306
Posted 11 May 2014 - 7:38 pm
This is not Possible with the In-game Scenario Editor, you will need AOKTS to make this work.

In AOKTS, Tribute 1 Kill to GAIA along with the Condition of Kills(assuming you have only 1 Unit whcih is Killing) and then use this as Condition in the Next Trigger to Check if the Players has Tribute 5 Kills to GAIA then Increase the HP/AP of that Specific Unit.

Download Link: [You must login to view link]
Link | Reply | Quote
 Barsta


Join Date: 31 July 2011
Posts:2719
Posted 11 May 2014 - 7:55 pm
Why not just have 'Condition: 5 Kills' and Effect: Change Object Attack: 1' on a loop.
Link | Reply | Quote
 JustTesting1234


Join Date: 30 April 2012
Posts:304
Posted 11 May 2014 - 8:18 pm
because when it hits 5 kills it will always give +1 ap every second
Link | Reply | Quote
 Coat_of_Arms


Join Date: 29 November 2012
Posts:6806
Posted 11 May 2014 - 8:25 pm
because when it hits 5 kills it will always give +1 ap every second
But like this:
Trigger 1(on)
Condition 1: get 5 kills
Effect 1: Enable Trigger 2
Effect 2: Disable Trigger 1

Trigger 2(off)
Effect 1: Add +1 AP to unit
Effect 2: Enable trigger 1
Effect 2: Disable trigger 2


Or it's too recursive and crashy?
Link | Reply | Quote
 RichardCory


Join Date: 25 April 2013
Posts:26
Posted 12 May 2014 - 8:32 am
Thanks for answers.
Quote:
This is not Possible with the In-game Scenario Editor, you will need AOKTS to make this work.

I knew a way to make it work with In-game editor(I tried it as well) but I don't remember it now because I have not used it for a long time. I am just looking for that method if anyone remember it. I just remember that it was some kind of trick like on every kill, one unit was created and killed at same time on a specific location of map but this method somehow balanced the loop and increased AP on assigned kills only with loop.
Quote:
But like this:
Trigger 1(on)
Condition 1: get 5 kills
Effect 1: Enable Trigger 2
Effect 2: Disable Trigger 1

Trigger 2(off)
Effect 1: Add +1 AP to unit
Effect 2: Enable trigger 1
Effect 2: Disable trigger 2


Or it's too recursive and crashy?

I also tried this method and it should work but for some unknown reasons, it is not working as it should and after assigned kills, loop starts increasing AP.
Link | Reply | Quote
 RichardCory


Join Date: 25 April 2013
Posts:26
Posted 26 May 2014 - 5:20 pm
Hey guys! I finally got how it works:

Trigger 1:
Starting scale: On
Trigger Loop: On

Condition 1: Accumulate Attribute
Attributes List: Kill Ratio
Source Player: Player 1
Quantity: 1

Effect 1: Create Object
Object List type: Unit
Object List: Any unit(e.g Archer)
Source Player: Player 1
Set Area anywhere.

Effect 2: Kill Object
Object List type: Units
Object List: <None>
Source Player: Player 1
Set area same as of Effect 1.

Effect 3: Change Object Attack/HP
Just Select the unit with Source player set to Player 1 and a suitable quantity like 5.

I tried this out and it is working :)
Link | Reply | Quote
 Gallas


Join Date: 25 May 2011
Posts:2751
Posted 27 May 2014 - 11:06 am
Hi guys.
I would like to know how to make a unit's attack/hp increase with a kill or razings. Like 1 attack increase on every 5th kill or razing. Answers will be appreciated. Thanks in advance.


Here other way:

Trigger: starting YES looping YES
Condition 1: Accumulate Attribute (player1): 5 kill/razes (as you want)
Effect 1: Send Tribute (player 1 to gaia): 5 kill (you need [You must login to view link] for this function)
Effect 2: Change object hp/attack (whatever you want)

Pros:
- 1 trigger / 1 player
- repeatable with other stuffs
- easy to make/edit

Cons:
- You cannot get more than 5 kills/razes
- For extra bonuses you need more complicated mechanisms
Link | Reply | Quote
 RichardCory


Join Date: 25 April 2013
Posts:26
Posted 31 May 2014 - 6:59 pm
Gallas wrote:
Here other way:

Trigger: starting YES looping YES
Condition 1: Accumulate Attribute (player1): 5 kill/razes (as you want)
Effect 1: Send Tribute (player 1 to gaia): 5 kill (you need [You must login to view link] for this function)
Effect 2: Change object hp/attack (whatever you want)

Pros:
- 1 trigger / 1 player
- repeatable with other stuffs
- easy to make/edit

Cons:
- You cannot get more than 5 kills/razes
- For extra bonuses you need more complicated mechanisms

Thanks mate :)
I was looking for a method to do it without using external tools. Thank you for your answer.
I may give it a try ;drool


Link | Reply | Quote
[1]
Displaying 1 - 9 out of 9 posts
Forum Jump:
1 User(s) are reading this topic (in the past 30 minutes)
0 members, 1 guests

Most active threads in past week: