I've a big problem with my "kill points for mineral" problem...
I've created a trigger for points <=> mineral converter.
However, my mineral increase very slowly, like 1,2,3,4,5,6,7,8,9,10,11.....
How do i solve this problem?
Thanks!
Make different denominations. I recommend using the one of powers of two. For example, if player has 2 points, subtract 2 points and add 2 minerals. Do the same for 4, 8, 16, 32, 64, 128, 256, 512, etc. as far as you need to go. Order it so that the higher level points are converted to minerals first by putting them at the top of your order of triggers. This will make them fire faster. For example, if someone has 670 points, it will go to 158 (-512), 30 (-128), 14 (-16), 6 (-8), 2 (-4), 0 (-2); instead of going to 669, 668, and etc. much more slowly.
QUOTE
Order it so that the higher level points are converted to minerals first by putting them at the top of your order of triggers.
Yes, trigger order does matter so have it like this:
Subtract 120490195019509 trigger here
everything in between
Subtract 1 trigger here
Also, I recommend you use hyper triggers. They speed up the conversion by 12x.
Yea, the best way to do it is to say, Player has 100 points, subtract 100 points add 100 minerals, but do this with any other higher numbers u want. like 200, 500, 1000 etc.
QUOTE(Yenku @ Jan 23 2005, 03:00 PM)
Yea, the best way to do it is to say, Player has 100 points, subtract 100 points add 100 minerals, but do this with any other higher numbers u want. like 200, 500, 1000 etc.
[right][snapback]130890[/snapback][/right]
Thank you for your input but the question was already answered. Please read the whole topic before posting!
But yes any large number would work. I prefer powers of 2 because powers of 2, each trigger would only run once allow the trigger to be resolved within very little time. Powers of 10 are also good (1, 10, 100, 1000) because each trigger would only need to run 9 times. This allows the triggers to be resolved within 1 second.
Me-
QUOTE
Order it so that the higher level points are converted to minerals first by putting them at the top of your order of triggers.
LegacyWeapon-
QUOTE
Yes, trigger order does matter so have it like this:
Subtract 120490195019509 trigger here
everything in between
Subtract 1 trigger here
LegacyWeapon-
QUOTE
Thank you for your input but the question was already answered. Please read the whole topic before posting!
A bit hypocritical there aren't we?
I was enforcing what you said. It was a very important remark and some people might not perfectly understand what you said.