Im making a map with an ammo system, and when you reload, it shows this:
Reloading... [||||||||||]
The bars change color until they're full, then you're supposed to reload. However, instead of this happening, the reload msg plays over and over. I used the trigger:
Players:
Current player accumulates exactly 0 minerals
Current player accumulates at least 1 vespene gas
Actions:
Set 'Reload'
Preserve Trigger
Players:
Current player accumulates exactly 0 minerals
Current player accumulates at least 1 vespene gas
'Reload' is set
Actions:
Display msg 1
Wait 500 ms
Display msg 2...
Wait 5 ms
Set minerals for current player to 6
Subract 1 vespene gas for current player
Preserve Trigger
How do I fix this?
None.
You never clear 'Reload', so why do you have it at all?
None.
Sorry, I DID clear reload, just forgot to type it here. =( I'm stupid -.-.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
Sorry, I DID clear reload, just forgot to type it here. =( I'm stupid -.-.
Well when you did that, the triggers should work fine. But for reasons of efficiency remove the first trigger and all instances with the switch.
Then the only conditions left are ore and gas. Is it possible another trigger sets your minerals back to 0? Or maybe your add 6 minerals doesn't work. (for the right player?)
Whoops. *slaps face*. I forgot to add the triggers to reset resources, it works fine now =].
None.
I don't see why the switch is necessary at all, because the conditions that set the switch appear exactly the same in the trigger below it. It won't cause problems, but it's a matter of efficency.