Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Kills to cash problem, +---

Creator: TartarusMkII
Time: Dec 15 2007, 3:47 pm

Post #1     TartarusMkII Dec 15 2007, 3:47 pm

[Avatar]
 offline contact
I replicated this from one of my maps that works and still somethings wrong- and a heads up, i tried this with both Custom points and death points and still i have this problem

when i get 10 kills i have it so you get a civilian and for debugging purposes tells you you got 10 kills. when i get 10 kills it doesent stop giving me civilians and telling me i got 10 kills. this is how its set up.

Trigger 1-
Players- 1-6
c: Current Player kills at least 10 men
a:Modify death counts for CP: add 1 for terran medic
Modify Score for current player: subtract 10 kills
Display for CP: 10 kills
Preserve

Trigger 2-
Players 1-6
c:CP has at least 1 deaths of terran medic
a:Create 1 civilain at civilian spawn for CP
modify death for CP subtract 1 terran medic
preserve

whats the problem?
Attachments:
scm file
ICTXDefenseTEST.scm (107.50 kb)
0 hits.
Top

Post #2     NudeRaider Dec 15 2007, 4:05 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from TartarusMkIII replicated this from one of my maps that works and still somethings wrong- and a heads up, i tried this with both Custom points and death points and still i have this problem

when i get 10 kills i have it so you get a civilian and for debugging purposes tells you you got 10 kills. when i get 10 kills it doesent stop giving me civilians and telling me i got 10 kills. this is how its set up.

Trigger 1-
Players- 1-6
c: Current Player kills at least 10 men
a:Modify death counts for CP: add 1 for terran medic
Modify Score for current player: subtract 10 kills
Display for CP: 10 kills
Preserve

Trigger 2-
Players 1-6
c:CP has at least 1 deaths of terran medic
a:Create 1 civilain at civilian spawn for CP
modify death for CP subtract 1 terran medic
preserve

whats the problem?

Modifying the kills score doesn't affect the number of kills the player made. You will have to use kills score in the condition. The problem is if you got a mix of units that can be killed you cannot tell how many individual units the player has killed.
If there's always only 1 type of unit (like in def maps) you can subtract the exact kills score for that level to get accurate.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #3     TartarusMkII Dec 15 2007, 4:15 pm

[Avatar]
 offline contact
Im not following. The [men] doesent work why? and how does that make it never stop giving me civilians? and like i said this has worked before
Top

Post #4     NudeRaider Dec 15 2007, 4:46 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from TartarusMkIIIm not following. The [men] doesent work why? and how does that make it never stop giving me civilians? and like i said this has worked before

I didn't say anything about [men].

I said the kills SCORE doesn't affect the NUMBER of kills.

e.g. you kill 1 marine, then you have killed 1 [men] and and have 100 kills score.
then you kill another unit: hydralisk, then you have killed 2 [men] and have 100+350 kills score.

Subtracting kills score then doesn't affect how many units you killed.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #5     TartarusMkII Dec 15 2007, 4:54 pm

[Avatar]
 offline contact
so got any suggestions as how to do this properly? what i just dont understand is that it works fine on some of my other testing maps.
Top

Post #6     Fwop_ Dec 15 2007, 5:41 pm

[Avatar]
A 43 minerals well spent.
 offline contact
C: Current Player kills score is at least 1. (Killed a unit)
A: Set Kills score for Current Player to 0.
A: Modify Death Counts for Current Player to: Add 1 Terran Medic.
A: Preserve Trigger

C: Current Player has suffered at least 10 deaths of Terran Medic.
A: Modify Death Counts for Current Player to: Subtract 10 Terran Medic.
A: Create 1 Terran Civilian at Civilian Spawn
A: Display '10 Kills'
A: Preserve Trigger

That's how you'd go about doing it in its simplest form. Problems occur when you kill two or more enemies at the same time, but in defense maps that doesn't always make much of difference (it, could though).
(signature image)
Top

Post #7     TartarusMkII Dec 15 2007, 5:49 pm

[Avatar]
 offline contact
if i add hyper triggers u think itll fix it? cuz yes in my defenses you will kill alot of people in a small time frame lol
Top

Post #8     Fwop_ Dec 15 2007, 5:52 pm

[Avatar]
A 43 minerals well spent.
 offline contact
Hyper triggers will help some of the problem, but the problem can still occur. There is a way to do Perfect Kills to Cash, but I don't know it off hand. Try searching for it.

Too late: http://www.maplantis.org/index.php?pg=wiki;id=45#wiki_6
(signature image)
Top

Post #9     TartarusMkII Dec 15 2007, 6:10 pm

[Avatar]
 offline contact
i did it exactly like you told me to and it still doesent stop giving me kill points (when i get to 10 kill points it does give me another civilian). the 1st part of the trigger is whats repeating.
Top

Post #10     Fwop_ Dec 15 2007, 6:14 pm

[Avatar]
A 43 minerals well spent.
 offline contact
Did you set score for kills to 0? Can't think of anything else, post triggers please.
(signature image)
Top

Post #11     TartarusMkII Dec 15 2007, 6:20 pm

[Avatar]
 offline contact
trigger 1
players 1-6
c:CP kills score is at least 1
a:mod death for cp add 1 medic
modify score for CP subract 1 kill
Preserve

trigger 2
players 1-6
c:CP suffered 10 deaths of medic
a:mod death subract 10 medics
create 1 civilian
preserve


i use at least and subtract because like with the civlian buying system i dont want to clog it so it skips some kills and doesent give accurate results.

and like i said this has worked before
Top

Post #12     Fwop_ Dec 15 2007, 6:23 pm

[Avatar]
A 43 minerals well spent.
 offline contact
Well, the problem is, pretty much every unit has a kill score of over 50. That's why you need to set the score to 0 each time, which is also why that system will have problems.
(signature image)
Top

Post #13     TartarusMkII Dec 15 2007, 6:28 pm

[Avatar]
 offline contact
oh duh i totaly forgot about that. let me change this around, add hyper triggers and see how it plays. if i still have any problems all dive into the perfect system *gulp*
Top

Post #14     TartarusMkII Dec 15 2007, 6:34 pm

[Avatar]
 offline contact
Ok it works now and better with hyper triggers but still not perfect. however, in the final version i dont think players will kill as fast i was doing in my playtest so ill keep this method until the final tests if i notice any problems. thanks SO much for your help.
Top

Post #15     NudeRaider Dec 15 2007, 7:03 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Are there coming different types of units for a single level,
or do the players have to beat level 1 lings, then level 2 hyds and so on?

Because if you have only 1 type you can easily make your kills to cash perfect without using the complex setup of the "perfect method".
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #16     TartarusMkII Dec 15 2007, 7:23 pm

[Avatar]
 offline contact
level 1 are reavers level 2 are archons level 3 are ultralisks etc but you know man ide go nuts programing a cash system with each level
Top

Post #17     Falkoner Dec 15 2007, 7:33 pm

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
You need to have a different kill score for money each level, depending on the unit.
Top

Post #18     Fwop_ Dec 15 2007, 7:36 pm

[Avatar]
A 43 minerals well spent.
 offline contact
If two types of monsters came out at the same time, you'd also have a problem.
(signature image)
Top

Post #19     TartarusMkII Dec 15 2007, 7:56 pm

[Avatar]
 offline contact
nah its just 1 enemy, and making a kill to civ trigger set for each level will drive me insane
Top

Post #20     y10k Dec 15 2007, 8:01 pm

[Avatar]
 offline contact
its not that hard

p:all.
c:wave 'y' is set
c:current player has at least 'x' kills score

a:give some cash
a:sub 'x' kills score for current player.

y = current wave
x = y's unit's appriopriate kill score.
just require 1 trigger for each level. It might take 20 minutes.
Top
0 members in this topic: None
+ 0 guest(s)


[10:23 pm]
Centreri -- I can wait a bit more :( .
[10:22 pm]
[Echo]:] -- I have left over Easter jellybeans, yum!
[10:20 pm]
Centreri -- Should I save my appetite for dinner? /internalstruggle
[10:20 pm]
Centreri -- I'm a genius!
[10:20 pm]
Centreri -- ..? I still have some chocolates amoung halloween leftovers.
[10:19 pm]
Corbo[MM] -- you bastards.
[10:19 pm]
Corbo[MM] -- I want chocolate now too.
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions