hexadecimal110
Squire
posted 01-13-08 01:22 AM CT (US)
The trigger I need help with is the change object attack trigger and i wish to change an object's attack for every 10 kills you make for his attack to increase by 1. I've tried this and when I set the quantity of kills of the kill ratio to 10 it puts his attack up only if you make kills within a second. I've also tried to 'create' and 'remove' the object to put the ratio back to 0 but still nothing. Could someone possibly help? (Increasing his attack by 1 with a quantity of 1 works).
UnnamedPlayer
Squire
posted 01-13-08 01:30 AM
CT (US)
1 / 2
this might not be the best way to do it, but i think it's the simplest
condition: accumulate 10 kills
effect: set kills = 0 (tribute -10 kills using trigger studio)
effect: change attack
trigger is looping
!!!!!!!!!!!!!!!!!!!!
another way is this taken from the sticky..
Q108. What is the "Kill Ratio" condition?
Your kill ratio is the balance between how many kills you have and how many of your units have been killed. Having a high kill ratio means you have killed more than you have lost. Having a negative kill ratio means you have lost more than you have killed. If you have killed and lost the same amount of soldiers, your kill ratio is 0. See the pattern? To find your kill ratio, the computer subtracts your number of kills by your number of losses. i.e. : If you have killed 22 men and lost 4, your ratio is 18. If you have kill 60 and lost 100, your ratio is minus 40.
Q109. How do I reward players for every kill they make?
For this, you will need to use "Kill Ratio", under the "Accumulate Attribute" condition. Basically, it is a process of rewarding the player when the ratio is (+) 1, and then resetting it to 0 until the next kill. Here is the trigger, the reward is 10 gold in this example:
Trigger0
Display as Objective: Yes / No
Trigger Starting State: On
Trigger Looping: Yes
------------------------------------------------------------ -------
Condition0: Accumulate Attribute ( 1 Kill Ratio: Player 1 )
Effect: Tribute ( 10 Gold: GAIA » Player 1 )
Effect: Create Object - Player One - Any Units - Location: Somewhere where the player will not notice.
Effect: Remove Object - Set area - Unit above
just change 1 to 10...
hexadecimal110
Squire
posted 01-13-08 02:23 AM
CT (US)
2 / 2
I have Trigger Studio but I don't know how to use it well. Could you tell me how to do what you said using TS? I got as far as the Effects. Thanks.