God I cant figure it out.
This is my Action atm.
Its actualy going negative, from a total of 2000 points it will work out to -17600.
Modify Kills[1]: - ((Player 1 Point Value of Units Killed / 100) x 20
I also tried just dividing by 0.2 but it seems you cannot go below 1.0 instead it changes to -1,-2.
Im trying to get this % figure out because if i start by using a set figure then as the game goes on what this trigger is involved in's actual value will be too small and exploited. Or if i make the value to high it will be too great early. Must be %.
I'm very confused... I can't figure out what you are trying to say.
However, my intuition tells me that you are trying to do an arithmetic that requires real numbers not integers.
Try this
Convert Real to Integer(Convert Integer to Real(Player 1 Point Value of Units Killed) / 100.00 x 20.00)
EDIT:
OR
Convert Real to Integer(Convert Integer to Real(Player 1 Point Value of Units Killed) / 5.00)
OR
Convert Real to Integer(Convert Integer to Real(Player 1 Point Value of Units Killed) *0.2)
What is the point value of player 1's kills when that happens? If he has 98000 points of kills, then the action is doing exactly as you specified. You may be confused because you weren't expecting such a high value. Point value of kills is NOT the number of kills that a player has. If you look at the "Score - Kill" field of a unit, it tells you how many points the unit is worth. The point value of kills is just the sum of all of these for the units you've killed.
Zifoon I think you understood pretty clearly, I did not realize I had to convert player value of units killed to real, I will try and return.
Masterdinadan I do not think you noticed the value is negative not positive. That Kills is also a Variable that is set to what ever Player score is with a few tweaks actions to make sure the two are equal.
I did notice that the value is negative. You are modifying the kills variable with subtraction so if the point value is high enough, you will end up with a negative number.
If Kills[1] is 2000 and the point value is 98000 but the two are supposed to be equal, then there must be some problem in how you determined Kills[1].
If you want them to be equal, then make them equal, but considering the action you just described to me, it is apparent that the two are not equal. After running that action a few times, they will be pretty far off, and a negative value would be reasonable.
Honestly after tones of tweaking the initial kill variable is set to exaclty what im after and thats the score of units killed MINUS the input of other features on the map that effect the players score as you can see in the first trigger. The problem is in the second trigger below as it is currently set to divide by 20 which should equal 80% of the value but instead just returned 975 when I activated the trigger with 2000 points.
If you think my actual Kill = Kill score is wrong then see for yourself and tell me.
Nvm I stored the amount being processed into a Variable of its own to separate it from the confusion and instead of getting me closer to a solution it completely fixed it. Thnx for the help.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
God I cant figure it out. This is my Action atm. Its actualy going negative, from a total of 2000 points it will work out to -17600.
Modify Kills[1]: - ((Player 1 Point Value of Units Killed / 100) x 20
I also tried just dividing by 0.2 but it seems you cannot go below 1.0 instead it changes to -1,-2.
Im trying to get this % figure out because if i start by using a set figure then as the game goes on what this trigger is involved in's actual value will be too small and exploited. Or if i make the value to high it will be too great early. Must be %.
I'm very confused... I can't figure out what you are trying to say.
However, my intuition tells me that you are trying to do an arithmetic that requires real numbers not integers.
Try this
Convert Real to Integer(Convert Integer to Real(Player 1 Point Value of Units Killed) / 100.00 x 20.00)
EDIT:
OR
Convert Real to Integer(Convert Integer to Real(Player 1 Point Value of Units Killed) / 5.00)
OR
Convert Real to Integer(Convert Integer to Real(Player 1 Point Value of Units Killed) *0.2)
@MapCrafter: Go
What is the point value of player 1's kills when that happens? If he has 98000 points of kills, then the action is doing exactly as you specified. You may be confused because you weren't expecting such a high value. Point value of kills is NOT the number of kills that a player has. If you look at the "Score - Kill" field of a unit, it tells you how many points the unit is worth. The point value of kills is just the sum of all of these for the units you've killed.
Zifoon I think you understood pretty clearly, I did not realize I had to convert player value of units killed to real, I will try and return.
Masterdinadan I do not think you noticed the value is negative not positive. That Kills is also a Variable that is set to what ever Player score is with a few tweaks actions to make sure the two are equal.
@MapCrafter: Go
I did notice that the value is negative. You are modifying the kills variable with subtraction so if the point value is high enough, you will end up with a negative number. If Kills[1] is 2000 and the point value is 98000 but the two are supposed to be equal, then there must be some problem in how you determined Kills[1].
If you want them to be equal, then make them equal, but considering the action you just described to me, it is apparent that the two are not equal. After running that action a few times, they will be pretty far off, and a negative value would be reasonable.
Ok now im getting 975.
Honestly after tones of tweaking the initial kill variable is set to exaclty what im after and thats the score of units killed MINUS the input of other features on the map that effect the players score as you can see in the first trigger. The problem is in the second trigger below as it is currently set to divide by 20 which should equal 80% of the value but instead just returned 975 when I activated the trigger with 2000 points.
If you think my actual Kill = Kill score is wrong then see for yourself and tell me.
Nvm I stored the amount being processed into a Variable of its own to separate it from the confusion and instead of getting me closer to a solution it completely fixed it. Thnx for the help.