Staredit Network

Staredit Network -> UMS Assistance -> Minerals For Kills
Report, edit, etc...Posted by Hick on 2004-08-17 at 01:16:43
Hey guys, this is kind of a stupid question, cause minerals for kills are simple triggers, but it wont work!

I want it so when you kill a Zergling, it adds 65 minerals and 40 Custom Score.
And when you kill a Hydralisk, it adds 80 minerals and 50 Custom Score.

My trigger so far:

PLAYERS:
- Player 1

CONDITIONS:
- Current player kills at least 1 Zergling

ACTIONS:
- Modify death counts for Current Player: Subtract 1 for Zergling
- Modify resources for Current Player: Add 65 minerals
- Modify score for Current Player: Add 40 Custom
- Preserve trigger

(Same for Hydra with minerals and custom in their respective places)

I'm guessing it's because it's subtracting a death for the player that killed the unit, instead of subtracting a kill, but I couldn't find an action like "Set Kills" or anything.

Sorry for wasting your time, cause I'm sure this is a stupid question biggrin.gif .
helpsmilie.gif
Report, edit, etc...Posted by greenreaper on 2004-08-17 at 01:20:18
Well...I'm too lazy to explain but it tells you here.

http://www.staredit.net/?showtopic=1885
Report, edit, etc...Posted by Vindexus on 2004-08-17 at 01:20:51
Do a search, please, there are at least 5 topics on this subject, three tutorials, one map, and there's also the map help and tricks archive.
Report, edit, etc...Posted by Hick on 2004-08-17 at 01:27:36
QUOTE(greenreaper @ Aug 17 2004, 12:20 AM)
Well...I'm too lazy to explain but it tells you here.

http://www.staredit.net/?showtopic=1885

lol Sorry, I've read that thing before but I just interpreted it wrong, now I understand. lol Sorry for you time. wallbash.gif
Report, edit, etc...Posted by Neiji on 2004-08-17 at 21:10:35
I think this is wrong:

Why is Current player the that kills the zergling, and you set death counter for "Current Player", if Current player kills the zergling, not gets killed...

Are the "Current Player" from The Conditions and Actions the same person?
Report, edit, etc...Posted by Hick on 2004-08-18 at 00:10:19
Okay, everybody take a deep breath. Now take another one. Now swear you won't kill me. I have an idea regarding all the questions people ask about minerals for kills, as I am sure I will not be the last to ask how it's done.

- First of all, the section labeled "Money for Kills" in the pinned section, should definitally be fixed, as it is incorrect (well that's what some people have been saying biggrin.gif )

- I still don't get it ( cry.gif cry.gif cry.gif have mercy cry.gif cry.gif cry.gif )

- Please list all the triggers in this required in this post to do the following:

I would like it so when you kill a Zergling, you recieve 80 minerals and 40 Custome Score.
I would like it so when you kill a Hydralisk, you recieve 100 minerals and 50 Custome Score.
I would prefer it if this could be done without the use of a leaderboard (but it doesn't really matter)
I would like it so the minerals and Custom Score would be recieved at a reasonble rate, because I downloaded just about every map concerning how do solve this problem, and the only one I found that worked to my liking (even with Hyper Triggers), only gave you 1 mineral per kill, at the income rate of 1 mineral per second.

Hopefully this post will end most of the futur questions on this subject biggrin.gif .
Report, edit, etc...Posted by Vindexus on 2004-08-18 at 00:18:02
QUOTE(Hick @ Aug 17 2004, 11:10 PM)
Okay, everybody take a deep breath. Now take another one. Now swear you won't kill me.

No promises

QUOTE
Players
- Humans
Conditions
- Current player kills score is at least 50
- P8 (assuming it's an RPG where P8 is the comp player) has suffered at least 1 deaths of Zergling
Actions
- Subtract 50 kills
- Add X Custom
- Add Y Minerals
- Subtract 1 deaths for P8 for zergling


Repeat for others. Hyper triggers help. So do units without splash damage.
Report, edit, etc...Posted by Hick on 2004-08-18 at 00:31:14
Sigh... It didn't work. I did exactly what you said (only I added "Preserve Trigger" as I thought you forgot it by accident)

When I killed a Zergling, it gave me the proper amount of minerals.
Then it did it again.
And again.
And again.
And again.
And again.

Ugh... Someone plz help! wallbash.gif wallbash.gif wallbash.gif
Report, edit, etc...Posted by Mp)Squirrel on 2004-08-18 at 07:42:26
Either everybody is TOO LAZY or nobody wants to help hick. Either way ill explain it (as I have to about 10 different people before)
What you need to understand about the condition Kill is this: Kill means Kill. If you kill 1 zergling, then you will have 1 kill of a zergling. If you do preserve trigger, and you kill just 1 zergling, itll keep giving u minerals, since there is no way to subtract 1 zergling kill. In other words, you cannot do this kind of thing (unless you want to waste a LOT OF TIME (SC Trigger helps, but im sure you might reach the string limit or something else quickly).
If you want to actually have different units give different resource ammounts, do this:

Conditions: Always
Actions: Leaderboard Points: Kills
--new trigger--
Conditions: Current player's score (kills) is atleast __ (civs give the least: 10, next is broodling which gives 25, then zergling which gives 50)
Actions: Subtract 10 Score (kills) for current player
Add (however ammount) Minerals for current player.

Ok, since I defiled the original guide that I stole tongue.gif I will just give you the full one.


Thanks to ZD]Squirrel

TERRAN UNITS
Unit Worth Size Damage Atk Range Speed
Men: Type reload

Marine - 100 S n .7 4/6 18 (32 stimmed)
Ghost - 350 s c 1.1 7 18
Vulture - 150 m c/- 1.5 5 34
Goliath - 400 l n/e 1.1 5/9upg 25
Siege Tank - 700 l e/- 1.8/3.7 7/12 18
SCV - 100 s n/- .7 1 27
Firebat - 200 s c/- 1.1 1 18
Medic - 250 s - - - 18
Wraith - 800 l n/e 1.5/1.1 5 40
Science Vessel - 1250 l - - - 40
Dropship - 600 l - - - 30
Battlecruiser - 2400 l n 1.5 6 15
Valkyrie - 800 s -/e 3.2 6 40
Gui Montag (Firebat) - 400
Civilian - 10 s - - - 18
Sarah Kerrigan (Ghost) - 700
Alan Schezar (Goliath) - 800
Jim Raynor (Vulture) - 300
Jim Raynor (Marine) - 200
Tom Kazansky (Wraith) - 1600
Magellan (Science Vessel) - 2500
Edmund Duke (Siege Tank) - 1400
Arcturus Mengsk (BC) - 4800
Hyperion (Battlecruiser) - 4800 1.1
Norad II (Battlecruiser) - 4800
Samir Duran (Ghost) - 700
Alexei Stukov (Ghost) - 700
Gerard DuGalle (BC) - 4800
~
Special:

Vulture Spider Mine - 25 s
~
Buildings:
(lift off) 9
Command Center - 1200 l
Supply Depot - 150 l
Refinery - 150 l
Barracks - 225 l
Academy - 300 l
Factory - 600 l
Starport - 600 l
Science Facility - 825 l
Engineering Bay - 195 l
Armory - 300 l
Missile Turret - 150 l -/e .7 7
Bunker - 150 l
~
Addons:

Comsat Station - 225 l
Nuclear Silo - 225 l
Control Tower - 300 l
Covert Ops - 225 l
Physics Lab - 225 l
Machine Shop - 225 l
~
Special Buildings:

Norad II (Crashed BC) - 5000 l
Ion Cannon - 5000 l
Psi Disruptor - 3600 l
Power Generator - 600 l
~
Independent:

Independent Starport - 10 l

ZERG UNITS
~~~!!!~~~
Unit Worth Size Damage Atk Range Speed
Men: Type reload

Zergling - 50 s n/- 6/upg/4 0 33/45
Hydralisk - 350 m e .7 4/6 18/33
Ultralisk - 1300 l n/- .7 0 25/45
Broodling - 25 s n/- .7 0 ?
Drone - 100 s n/- .7 0 27
Defiler - 450 m - - - 18
Infested Terran - 400 s e/- - 0 33
Lurker - 500 l n/- 1.9 6 33
Overlord - 200 l - - - 5/19
Mutalisk - 600 s n 1.5 3 40
Guardian - 1100 l e/- 1.5 8 14
Queen - 800 m - - - 40
Scourge - 200 s -/e - 0 40
Devourer - 1100 l -/e 5 6 30
Torrasque (Ultralisk) - 2600 l n/-
Matriarch (Queen) - 1600 m -
Infested Kerrigan - 4000 s n/- .7 0
Unclean One (Defiler) - 900 m -
Hunter Killer (Hydralisk) - 500 m e
Devouring One (Zergling) - 100 s n/-
Kukulza (Mutalisk) - 1200 s n
Kukulza (Guardian) - 2200 l n/-
Yggdrasill (Overlord) - 400 l -
Infested Duran - 700 s c
~
Specials:

Larva - 10 ? - -
Egg - 25 ? - -
Cocoon - 10 ? - -
~
Buildings:

Infested Command Center - 900 l
Hatchery - 900 l
Lair - 1200 l
Hive - 1500 l
Nydus Canal - 225 l
Hydralisk Den - 300 l
Defiler Mound - 450 l
Greater Spire - 1350 l
Queen's Nest - 525 l
Evolution Chamber - 120 l
Ultralisk Cavern - 825 l
Spire - 750 l
Spawning Pool - 225 l
Creep Colony - 120 l
Spore Colony - 195 l -/e 1.8 7
Sunken Colony - 240 l e/- .7 7
Extractor - 75 l
~
Special Buildings:

Overmind (With Shell) - 10000 l
Overmind - 10000 l
Mature Crysalis - 5000 l
Cerebrate - 2500 l
Cerebrate Daggoth - 2500 l
Overmind Cocoon - 4000 l
~~~!!!~~~
PROTOSS
Unit Worth Size Damage Atk Range Speed
Men: Type reload

Dark Templar - 650 s n/- 1.5 0 25
Dark Archon - 1300 l - - - 25
Probe - 100 s n/- 1.1 0 27
Zealot - 200 s n/- 1.1 0 18/33
Dragoon - 500 l e 1.1 4/6 25
High Templar - 700 s - - - 18
Archon - 1400 l n 1 1 25
Reaver - 800 l n/- 3 8 12
Corsair - 700 m -/e .4 5 40
Shuttle - 400 l - - - 25
Scout - 1300 l n/e 1.1/1.5 4 40
Arbiter - 2050 l e 2.2 5 30
Carrier - 1900 l n 1.5 8 20
Observer - 450 s - - - 20/27
Dark Templar (Hero) - 400 s n/-
Zeratul (Dark Templar) - 800 s n/- 1.1
Tassadar/Zeratul (Archon) - 2800 l n
Fenix (Zealot) - 400 s n/-
Fenix (Dragoon) - 1000 l e
Tassadar (Templar) - 1400 s n/- 1.5 about 3
Mojo (Scout) - 2600 l n/e
Warbringer (Reaver) - 1600 l n/-
Gantrithor (Carrier) - 3800 l n
Danimoth (Arbiter) - 4100 l e
Aldaris (Templar) - 1400 s n/- 1.1 about 3
Artanis (Scout) - 2400 l n/e
Raszagal (Dark Templar) - 1300 m -/e
~
Buildings:

Nexus - 1200 l
Robotics Facility - 900 l
Pylon - 150 l
Assimilator - 150 l
Observatory - 525 l
Gateway - 225 l
Photon Cannon - 300 l n 2.2 7
Citadel of Adun - 600 l
Cybernetics Core - 300 l
Templar Archives - 750 l
Forge - 300 l
Stargate - 900 l
Fleet Beacon - 1050 l
Arbiter Tribunal - 1350 l
Robotics Support Bay - 375 l
Shield Battery - 150 l
~
Special Buildings:

Stasis Cell/Prison - 5000 l
Protoss Temple - 5000 l
Xel'Naga Temple - 5000 l
Warp Gate - 2000 l
~
NEUTRAL UNITS

Critters:

Rhynadon (Badlands) - 10 ? - ?
Bengalaas (Jungle) - 10 ? - ?
Scantid (Desert) - 10 ? - ?
Kakaru (Twilight) - 10 ? - ?
Ragnasaur (Ash World) - 10 ? - ?
Ursadon (Ice World) - 10 ? - ?

The thing your looking for is Points (sorry the letters are unaligned, but StarEdits.net's font does that)
Also, no, there is no way to customize how much points you get for a certain unit (other than subtracting minerals/kills for killing 1 of its kind)
Report, edit, etc...Posted by Hick on 2004-08-18 at 15:48:08
Thanks a lot! But wouldn't this method cause complications with splash damage?

Example: In my game there are Broodlings and Zerglings.

Broodling = 25 points
Zergling = 50 points

If a Firebat was to kill 2 Broodlings with 1 attack, wouldn't it give the amount of minerals equal to the same as killing one Zergling? Or would it would the Broodling trigger activate before the Zergling one?
Report, edit, etc...Posted by Deadzergling on 2004-08-18 at 16:22:51
There would be several indiscrepancies really. Zealots & bats both give same kill points, two zerglings would be like one marine, ghosts and hydralisks the same points, two marines like one zealot or firebat, the possibilities for malfunction are endless. You might just consider the system that goes by points only, and not bother with specific units being worth certain amounts.

Conditions
Current players kills score is at least 10

Actions
Remove 10 kills for current player
Add 10 custom for current player
Add 10 minerals for current player
preserve trigger

Conditions
Current player kills score is at least 25

Actions remove 25 kills for current player
Add 25 custom for current player
Add 25 minerals for current player
Preserve trigger

(repeat same with 50, 100, 200, 500, and 1000 to cover all bases)

That would be the best way to do what you want, but if you want each unit to be worth just so much, you are going to be sitting doing specific little triggers for hours upon hours.

Just a small example

Conditions
Current player kills at least 1 zergling
Actions
Add 60 minerals for current player
(DO NOT PRESERVE)
Conditions
Current player kills at least 2 zergling
Actions
Add 60 minerals for current player
(DO NOT PRESERVE)
And lets say you put 200 or 300 zergligns to be killed in the map, we will just say 200, than you would have to do this same string, 1 to 200, for each and every zergling, and than start again with hydralisks.
Conditions
Current player kills at least 1 hydralisk
Actions
Add 150 minerals for current player
(DO NOT PRESERVE)
All the way down the line to however many hydralisks you plan on having, otherwise he would get to a breaking point, where hydralisks would be worth nothing.
I didn't add remove kills or add custom at all to these because you want to go by a pure kills system, instead of points, so it would be (redundancy) pointless to do such.

So you have two choices here, you can either do the system I recommended, much more efficient, much faster, you could have it set up within 10 minutes probably ORRRRRR you can do the second edition that is outlined, you would be lucky to be done before you go to sleep. I am sure there are other systems, probably even more complicated and annoying for the kill system, but that is about the most fool-proof plan for it.

Hope this helps

Stukov Out
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-18 at 16:26:43
Mp)Squirrel if that list was formated it would be nice.

You proboly copied it from a notepad though. So it would lose all its spacing.
Report, edit, etc...Posted by Hick on 2004-08-18 at 17:05:07
Thanks Deadzergling, but theres an unlimited amount of enemies in my map, so I guess I'm stuck doing it that way, i just hope it doesn't mess up for things with splash, but I'm probably just gonna get rid of the heroes with splash or something. Thanks smile.gif
Report, edit, etc...Posted by mianmian on 2004-08-18 at 18:33:38
You forget that you don't have any splash damage player controlled units in your map so i'd go with Mp)Squirrel's triggers ( i've played his map its cool)
Report, edit, etc...Posted by Mp)Squirrel on 2004-08-19 at 00:12:25
DeadZergling, thats a nice idea, however it is flawed (almost).
Way back when i was a crappy noob map maker, I edited Penguin Warz (stupid zerglingblood spoof) and i found that the minerals just dont come fast, it came out really buggy, So, not knowning the cause, I quit on that project. However, I now know the cause.

Waits.

All players are getting 1 unit per second, meaning that it will wait for the units to come before it converts to minerals. One easy way of countering that is using a more complicated method:

Hyper triggers for Force 1,
-----
Force 1
Current players score is atleast 1
Current players score is atmost 10
Subtract 1 score for current player
add 1 minerals for current player
-----
Force 1
Current players score is atleast 11
Current players score is atmost 100
Subtract 10 score for current player
add 10 minerals for current player
-----
Force 1
Current players score is atleast 101
Subtract 100 score for current player
add 100 minerals for current player
-----
That should be enough, expecially with hyper triggers.
Report, edit, etc...Posted by Hick on 2004-08-19 at 00:22:06
Okay, i think its fine now but just for kicks, this exactly what i wanted:

First of all:

- Force 1 is allied with Force 3 (Force 3 is computer controlled)
- Force 2 is allied with Force 4 (Force 4 is computer controlled)

So its Force 1 and 3 vs. Force 2 and 4.

Force 1 and 2 have the heroes and are human controlled.

- Force 3 has Zealots and Ghosts
- Force 4 has Zerglings and Hydralisks

Zealots are the equivalent to Zerglings as are Ghosts to Hyrdralisks.

- There are an unlimited amount of Zealots, Ghosts, Zerglings and Hydralisks.

- Zealots and Zerglings give 80 minerals and 40 Custome Score.
- Ghosts and Hyrdralisks give 100 minerals and 50 Custom Score.

I was having complications because if a player was to kill some of his computer controlled allies, it would give the minerals and Custom Score, something I didn't want.

I think thats about it happy.gif .
Next Page (1)