Staredit Network

Staredit Network -> UMS Assistance -> Kill units to new units
Report, edit, etc...Posted by flipmonkey on 2006-01-17 at 16:35:12
I want to no how to a trigger where or for example kill a marine, then u get a marine a t a location. i want that to happen every time u kill marine. I dont want to have to repeat triggers to make this trigger true. i want to find a away to kill 1 marine then u get a marine. Then kill another marine and u get another marine. Like hmmm those pokemon maps " Pokemon Catchers" "Pokemon RPG" But i dont want to repeat the trigger over again.
Report, edit, etc...Posted by u_dunu_who_me_is on 2006-01-17 at 18:07:32
You can do something like this:

Trigger
Players:
¤ Any Player
Conditions:
¤ Has at least 1 kill for Marine
Actions:
¤ Subtract 1 Kill for current player
¤ Creat 1 marine at a location
¤ Preserve


and then use it again for other units.
Report, edit, etc...Posted by LegacyWeapon on 2006-01-17 at 18:08:34
You can't subtract kills.

We have tutorials for everything!
http://www.staredit.net/index.php?tutorial=81
Report, edit, etc...Posted by flipmonkey on 2006-01-17 at 19:47:15
The Tutorial: Kills to Cash wont work for me. Thats for the money. I need this set up because its going to be used for many different types of units. Kill 1 marine, u get a marine. kill a ling, you get a ling etc. No money is involved at the time.
Report, edit, etc...Posted by LegacyWeapon on 2006-01-17 at 19:58:06
Read the second and third methods. They describe how to give money for specific units. Instead of giving money, you can just create unit.
Report, edit, etc...Posted by SkuLL on 2006-01-17 at 19:58:50
I know. Here's the trigger that's pretty close.

Players: Any player you want.
Conditions: Current Player has suffered at least 0 deaths of any unit. (the unit you want.)
Trigger: Create 1 unit at 'location' for player.

umm... exept that if you set the location on the dead marine... wouldn't that location be gone?
Report, edit, etc...Posted by flipmonkey on 2006-01-17 at 20:08:07
i dont c those those help. Im trying to make to make it so that every time u kill a units, u get that unit at a certain location.

EX.
Kill a marine=1 marine
kill another marine=1 marine
so on

kill a ling=1 ling
kill another ling=1 ling

Its just every time u kill any unit. u will gain that unit as a prize for killing it.

Wanting it to repeat its self every time u kill a unit multiple times
Report, edit, etc...Posted by justin_grant on 2006-01-17 at 20:13:48
Do something like this, as it is more affective. By the way, I am going to assume you named the location 'spawn'

Trigger
Conditions:
¤ Always();
¤ Deaths(Player X, Amount, Unit);
Actions:
¤ Optionial: Wait(x);
¤ SetScore(Kills, Player X, 0, unit);
¤ CreateUnit(unit, amount, spawn);


I think that works, Im not sure about the trigger names though tongue.gif
Good Luck with your map!
Report, edit, etc...Posted by SkuLL on 2006-01-17 at 20:14:01
where do you want it to spawn?

btw... i have to think... i don't know if it's possible...
Report, edit, etc...Posted by flipmonkey on 2006-01-17 at 20:27:49
I dont care much were it is going to spawn. As long its spawn then i can fix were ever i want its going to pop up on the map. Right now i just want this trigger to be set up.
Report, edit, etc...Posted by PCFredZ on 2006-01-17 at 20:33:27
Perfect Kills to Cash is the best method.

LW gave you the wrong tutorial.
Report, edit, etc...Posted by flipmonkey on 2006-01-18 at 00:17:22
i dont understand it. im just getting confused myself

ADDITION:
Dont c how to set up the trigger with the titorials. Im not gaining any minerals for this. Im just trying to kill a units and that units u killed gets spawn to a certain location where it becomes yours. Thats all i want to do. I have multiple triggers set up so if i kill more then 1 marine, ill get the amount of rines i killed. Just want to no an easier way to set this up.
Report, edit, etc...Posted by whiteninja2 on 2006-01-18 at 08:54:25
euhm ok like LW sayt... in the tutorial use the unit the kill is for for the minerals

so the minerals in tutorial is the unit you killt if ya switch that you got your trigger you want
Report, edit, etc...Posted by Urmom(U) on 2006-01-18 at 14:25:17
QUOTE(skull @ Jan 17 2006, 08:58 PM)
I know. Here's the trigger that's pretty close.

Players: Any player you want.
Conditions: Current Player has suffered at least 0 deaths of any unit. (the unit you want.)
Trigger: Create 1 unit at 'location' for player.

umm... exept that if you set the location on the dead marine... wouldn't that location be gone?
[right][snapback]409199[/snapback][/right]

That would just make an endless spawn of units coming out for that player since the player would always have sufered at least 0 deaths of any unit.
Report, edit, etc...Posted by fritfrat(U) on 2006-01-18 at 15:53:45
The easiest way to set this up is to simply do separate triggers. Kill atleast 1 marine, create 1 marine. Kill atleast 2 marine, create 2 marine. That's what those pokemon games and stuff do.

Otherwise, you'd have to use the perfect kills to cash method, but since it seems as though this confuses you, you should really consider making a separate trigger for each kill if the map doesn't allow for too many kills.
Report, edit, etc...Posted by flipmonkey on 2006-01-18 at 16:24:23
I dont see how the kills to cash tutorial work in this type of situation. I understand the action part but not the condition part.

Condtion
¤ Current player Kills score is at least 500

I cant work with that. I need the condition set to the units. Current Player kills *marine

Then my action would be. Create 1 marine at location

I cant subtract kills or anything so i cant have an action setting kills to 0. Theres no such thing. (kills score is the score, point you get with each unit)

I need seprate triggers for almost each and every units.


Starting to agree with skull. Don't think it is possible.

ADDITION:
I no that they do that in the Pokemon maps. Just want to find an eaiser way to set this up. The only thing im thinking of is using the kills score system. Not the kill to cash but use the scoring for each an every unit. But 1 problem im having is where i come across 2 units with the same score such as a marine with a score of 100 and a scv with a score of 100.

Tutorial: Unit Kill Scores

ADDITION:
Come to think of it. There are many units and buildings that arent being in use. Instead of creating the unit i killed i can create sumthing else. Use the Kill Score Condtion and set it to sumthing like this.


Trigger
Description:
Marine: Trigger 1
Conditions:
¤ Kill score is exactaly 100
Actions:
¤ Create 1 *criter a location *spawn
¤ Subtract kill score to 100
¤ preserve tirgger



Trigger
Description:
Marine: Trigger 2
Conditions:
¤ Bring 1 critter at location *spawn
Actions:
¤ Remove 1 critter a location *spawn
¤ Create 1 marine at location *player 1
¤ preserve trigger
Report, edit, etc...Posted by PCFredZ on 2006-01-18 at 17:53:21
QUOTE(flipmonkey @ Jan 18 2006, 12:17 AM)
i dont understand it. im just getting confused myself

ADDITION:
Dont c how to set up the trigger with the titorials.  Im not gaining any minerals for this.  Im just trying to kill a units and that units u killed gets spawn to a certain location where it becomes yours.  Thats all i want to do.  I have multiple triggers set up so if i kill more then 1 marine, ill get the amount of rines i killed.  Just want to no an easier way to set this up.
[right][snapback]409288[/snapback][/right]

Here is my explanation of "Individual Actions for Separate Unit Types", aka the Perfect KtC method, it might be more clear than LW's tutorial, and this is the demo map to go along with the explanation.

If you still don't understand, I will make a simpler Pokemon demo map as a direct example.
Report, edit, etc...Posted by FatalException on 2006-01-18 at 23:58:44
Umm... I'm thinking that you could use the kills to cash, except you just replace cash with the unit you want. Also, you can download the trigger duplicator made by MindArchon to take a lot of trouble out of all that triggering.
Next Page (1)