Alright, now, here is the background information before I display the triggers:
This is a mass-map... Somewhat. This will remind some of 'footmen frenzy' in warcraft III, but, without the heros and items.
I've tested the upgrade tiers, and all the other things that I put it, they work great!
Now, the only way you can upgrade a tier, or do any upgrades, or buy add-on units(such as a dark archon for example) is, of course, you need minerals. But, the only way to get these so called minerals is to kill other units. All units have a specific mineral kill count. So, if I killed a marine, I get 15 minerals. If I kill a zealot, I get 20 minerals. If I kill a zergling, I get 10, etc. So, now, I present my trigger that fails after working twice.
This is just -one-, cause they are all practically the same.
Conditions:
Current Player kills exactly 1 Terran Marine.
Actions:
Modify resources for Current Player: Add 15 ore
Preserve trigger
What's interesting is that, it will work twice, but then never ever work again. So I can no longer get minerals at all.
Suggestions?
Unit Kill Minerals (loop stops at two?)
-
- Terran Settler (Unemployed)
- Posts: 3
- Joined: Sun Dec 23, 2007 12:20 am
- Ardis
- Terran Nuclear Silo Safety Inspector
- Posts: 228
- Joined: Tue Sep 05, 2006 5:03 pm
- Location: Ohio, USA
Re: Unit Kill Minerals (loop stops at two?)
There's a tutorial on the site:
http://www.campaigncreations.org/starcr ... oney.shtml
http://www.campaigncreations.org/starcr ... oney.shtml
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
Unstable implies that I could BECOME more dangerous than I am now.
-
- Terran Settler (Unemployed)
- Posts: 3
- Joined: Sun Dec 23, 2007 12:20 am
Re: Unit Kill Minerals (loop stops at two?)
Yeah, that's what I READ to actually figure it out, but it's not about -specific- units. And, when I tried to add the scoring function, it totally destroyed everything, and no minerals came at all.
- Ricky_Honejasi
- Xel'naga Solar Moderator
- Posts: 2011
- Joined: Wed Aug 16, 2006 3:50 pm
Re: Unit Kill Minerals (loop stops at two?)
If you think about it, you need to subtract one specific unit-type for the player in your trigger of yours AND that you change your condition to "at least" instead of "exactly".
Thus, in the case of marines, it will give the player +15 minerals per marine killed every 2 seconds (since the trigger fires every 2 seconds).
However in a mass type of map, it's possible to have like 20 kills of a same type and taking forever to get all the minerals (in such case, it would require 40 seconds) with only a 1 unit-type detection.
Thus, I recommend that you also include a condition of "kills at least *5* of a specific unit" and the actions of "Subtract 5 kills of (unit-type) for player (X)" and "Gives (normal gain for 1 multiplied by 5) minerals to player (X)"
Thus, in the case of marines, it will give the player +15 minerals per marine killed every 2 seconds (since the trigger fires every 2 seconds).
However in a mass type of map, it's possible to have like 20 kills of a same type and taking forever to get all the minerals (in such case, it would require 40 seconds) with only a 1 unit-type detection.
Thus, I recommend that you also include a condition of "kills at least *5* of a specific unit" and the actions of "Subtract 5 kills of (unit-type) for player (X)" and "Gives (normal gain for 1 multiplied by 5) minerals to player (X)"
Last edited by Ricky_Honejasi on Sun Dec 23, 2007 11:33 am, edited 1 time in total.
-
- Terran Settler (Unemployed)
- Posts: 3
- Joined: Sun Dec 23, 2007 12:20 am
Re: Unit Kill Minerals (loop stops at two?)
You are going to have to tell me how to set the triggers up correctly to successfully give me my specific units. Because, I don't completely understand. And the whole getting 2 kills for double amount of the minerals you get from one kill is just a bad idea for my game. But, in the end, if I need that, I will do that.
Terran Marine is killed
Current player will get 15 minerals. And this means that, there will be lots of marines in play, and you'll get 15 minerals for every marine you kill.
Protoss Zealot is killed
Current player will get 20 minerals. Same as above
Zergling killed
Current player will get 10 minerals. Same as above.
--
Now, I tried changing the exactly to at least, and it just caused the mineral score to keep on going up. So, I told another action to make it so the kill count kept going to zero every kill (using set instead of subtract). Well, it didn't help it. The minerals continued to stack up and up and up. So I changed it to subtract, and the minerals continued to stack up and up.
What am I doing wrong here?
Terran Marine is killed
Current player will get 15 minerals. And this means that, there will be lots of marines in play, and you'll get 15 minerals for every marine you kill.
Protoss Zealot is killed
Current player will get 20 minerals. Same as above
Zergling killed
Current player will get 10 minerals. Same as above.
--
Now, I tried changing the exactly to at least, and it just caused the mineral score to keep on going up. So, I told another action to make it so the kill count kept going to zero every kill (using set instead of subtract). Well, it didn't help it. The minerals continued to stack up and up and up. So I changed it to subtract, and the minerals continued to stack up and up.
What am I doing wrong here?
- Ricky_Honejasi
- Xel'naga Solar Moderator
- Posts: 2011
- Joined: Wed Aug 16, 2006 3:50 pm
Re: Unit Kill Minerals (loop stops at two?)
Conditions:
Current Player kills at least 1 Terran Marine.
Actions:
Modify resources for Current Player: Add 15 ore
Modify kills for Current Player : Subtract 1 kill of Terran Marine
Preserve trigger
Conditions:
Current Player kills at least 5 Terran Marine.
Actions:
Modify resources for Current Player: Add 75 ore
Modify kills for Current Player : Subtract 5 kill of Terran Marine
Preserve trigger
Note that I didn't use StarEdit for a very long time but I believe it's possible somehow although it might be different in StarEdit than I wrote there.
Current Player kills at least 1 Terran Marine.
Actions:
Modify resources for Current Player: Add 15 ore
Modify kills for Current Player : Subtract 1 kill of Terran Marine
Preserve trigger
Conditions:
Current Player kills at least 5 Terran Marine.
Actions:
Modify resources for Current Player: Add 75 ore
Modify kills for Current Player : Subtract 5 kill of Terran Marine
Preserve trigger
Note that I didn't use StarEdit for a very long time but I believe it's possible somehow although it might be different in StarEdit than I wrote there.