ok so ive done this before and i know there is some essential thing missing, i just cant figure it out. here is what im using:
P1
Switch(Switch 10, Set);
Kills(P1, AtLeast, 1, AnyUnit);
SetSwitch(Switch 10, Clear);
SetResources(P1, Add, 1, Gas);
Wait(5);
SetSwitch(Switch 10, Set);
PreserveTrigger();
Comment("add gas");
and my problem is that once i kill one unit my gas doesnt stop going up, i cant remember how to make it stop so when you kill a unit your gas gos up by one then thats it
P.S. what going on? ^ ^ ^ isnt that supost to make some special setup box thing or something?
None.
You aren't telling it to set kills to nil.
I can't remember whether you can do that.
Set it to foes suffering deaths, then set their deaths to 0.
None.
soo instead of checking kills? check deaths? i was gona try that but i figured it was the same thing...
just tested... and that doesnt change it -.-
Post has been edited 1 time(s), last time on Apr 1 2008, 12:56 am by lilneo.
None.
Well, your conditions are constantly being met... You have a "kills(at least 1 any unit) in there, which is always met whenever you kill at least 1 any unit, so you will always get the gas. What do you want to do? 1 gas per kill?
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
yes i know al my conditions are met and stuff, and yes i want 1 gas per kill then (in a seperate trigger) i get buyer for 10 gas, but i know ive done it before i kil something and get 1 gas then 10 gas=1 mineral but i forgot how to have it only once the condition is met and stuff
None.
No no, once you kill soemthing, your kills go up, permanently unless changed via triggers.
You have to set kills to 0.
None.
thats not how i did it before, and before it worked perfectly.... and it was a lot easier
Edit: crap... i found my map finally i did it before on, and i found that i mined gas then it changed 10 gas into minerals
so nevermind i can figure it out guys
Post has been edited 1 time(s), last time on Apr 1 2008, 2:55 am by lilneo.
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
No no, once you kill soemthing, your kills go up, permanently unless changed via triggers.
You have to set kills to 0.
You cannot set or change kills.
If you want something like that use kills score. But kills score adds different values for every unit which can make the detection of which unit was killed difficult.
In his case however, he could just make a trigger like that:
Current player has at least 1 kills score
add 1 gas and reset kills score for current player
You won't need a switch, but splash and other multiple kills won't be accounted for.
For more details and improvements check dtbk's link.
Yeah, like I said 'I can't remember whether you can do that.'
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
Yeah, like I said 'I can't remember whether you can do that.'
then it might be wise to check that before posting.
it gos in levels so.... all units are the same for like 5 minutes.... and ive solved it so no need for more posts
None.