Change in status of a unit by specific condition.

 RichardCory


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


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


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


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


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


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


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
 [MM]Gallas


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


Posted 31 May 2014 - 6:59 pm
[MM]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

What's popular right now:
Most active threads in past week: