I put a trigger as following:
Condition:
Current player has suffered 1 deaths of zealot
Action:
Create 1 zergling at location revived for current player
preserve trigger
But, one doesnt shows up instead they keep on being created and I cant figure out what has to be done to only create one.
Also, I wanted to know how to stop broodlings from dieing when they get to 0 energy.
you need to put in a condition to stop the trigger.
like it would be:
| Trigger |
| Conditions: |
| ¤ current player has suffered 1 death of xealot |
| Actions: |
| ¤ (set switch one here) |
then have a nother trigger:
| Trigger |
| Conditions: |
| ¤ switch one set |
| Actions: |
¤ create 1 zergling at location revived for current player
|
¤ unset switch 1
|
| ¤ (i dont think that you would need a preserve trigger here but you might want to check) |
that should work.
| Trigger |
| Description: |
| Create one Zealot when another dies |
|
| Players: |
| ¤ Humans |
| Conditions: |
| ¤ Current player has suffered at least 1 Deaths of Zealot |
| Actions: |
¤ Create 1 Zealot at Create Zealots for Current Player
|
¤ Subtract one deaths for Current Player for Zealot
|
| ¤ Preserve Trigger |
Edit: What chooie posted is wrong. Don't try it, it will keep going and going if you preserve trigger, because nothing is resetting the deaths.
remember deaths is only when a unit an opposing player controls kills the unit. i spent a week working on this in my bound

if u want it to respawn from any sort of death use:
-player-
-conditions-
commands 0 zealot
-actions-
whatever else you wan to happen
Back to the original trigger, there's two ways you get it to run once.
1. SUBTRACT a death for the Zealot. Nothing affects the death count, so of course it's going keep running.
2. Remove the Preserve Trigger.
If you don't want to switches perhaps...
Conditions:
Player X commands 0 Zergling
Action:
Create 1 Zergling at Location X
Preserve Trigger
QUOTE(Stardog @ Aug 31 2004, 07:30 PM)
If you don't want to switches perhaps...
Conditions:
Player X commands 0 Zergling
Action:
Create 1 Zergling at Location X
Preserve Trigger
[right][snapback]62690[/snapback][/right]
I'd like to point out that he wants it so when a
Zealot dies he create the Zergling so this will not work. Read the question

I am trying all your guys' suggestions but I cant get them to work.
Hey Vindexus, I cant find where I have to go to put subtract for action:
Subtract one deaths for Current Player for Zealot.
Mini Moose 2707, sorry but I dont get what your saying. Do you think you can maybe put it in conditions and actions.
ShadowBrood, When I put commands 0 zealot from the beggining I start getting zerglings and not one but infinite.
Action SET DEATHS
Minimoose is saying the same thing Vindexus did but without the Preserve Trigger.
When you create the Zealot you can set a switch, and then add a condition that the switch is set to his trigger and clear the switch in the same trigger.
Answered in order asked.
Here's my theory
When someone suggest to use switches, roll a dice. If you roll a one, a two, a three, a four, or a five, then don't use switches.
I have done every suggestion you guys' gave me and didnt get any of them to work and I still dont know why.
Since noone said anythink about broodlings I am guessing they die when they reach 0.
Try this map, then look at the trigger.
QUOTE(Stereo @ Sep 1 2004, 10:33 AM)
Try this map, then look at the trigger.
[right][snapback]62925[/snapback][/right]
I looked at the triggers and did it but it still didnt work. This is what happened I didnt get the zergling but someone else did.
this should work fine

QUOTE(LegacyWeapon @ Sep 1 2004, 04:19 PM)
this should work fine

[right][snapback]63017[/snapback][/right]
Thats the same trigger that Stereo had.
but did mine work? did u try it?
QUOTE(LegacyWeapon @ Sep 1 2004, 05:13 PM)
but did mine work? did u try it?
[right][snapback]63044[/snapback][/right]
No I didnt but I will. Dont know how its supposed to work when the other one didnt and they are same.
To keep broodlings from dieing, create them with triggers.
just try mine, cuz when i tried it, it worked
Battleaxe3, read the other posts before actually posting
There happy? At least I HELPED him by awnsering a question no1 even awnsered.
QUOTE(Battleaxe3 @ Sep 1 2004, 05:30 PM)
To keep broodlings from dieing, create them with triggers.
[right][snapback]63056[/snapback][/right]
Would you maybe know what triggers I would have to put in.
LegacyWeapon, I am sure it would work on the map you gave me but when I used
Stereos' suggestions and put it in the map I want to it didnt work.
why dont you post your map and let us check it out so we can fix it for you
for broodling
| Trigger |
| Actions: |
| ¤ Create x broodling for player x |
QUOTE(LegacyWeapon @ Sep 1 2004, 08:42 PM)
why dont you post your map and let us check it out so we can fix it for you
for broodling
| Trigger |
| Actions: |
| ¤ Create x broodling for player x |
[right][snapback]63228[/snapback][/right]
Well it isnt mine and I am actually trying to fix it but I dont know some things so I had to ask around. I fixed everything else I just dont know how to do those two things.
Here is the map:
Noobs... *shakes head*
For Broodling, a start broodling with energy set to 0 stays alive forever. A created broodling wiht no modifications WILL DIE. Either use X-tra to use create unit with properties, or perhaps try set energy to 0 (not sure if that one works)
QUOTE(DT_Battlekruser @ Sep 1 2004, 09:09 PM)
Noobs... *shakes head*
For Broodling, a start broodling with energy set to 0 stays alive forever. A created broodling wiht no modifications WILL DIE. Either use X-tra to use create unit with properties, or perhaps try set energy to 0 (not sure if that one works)
[right][snapback]63246[/snapback][/right]
No need to be calling me noob now I know it you know it and everyone else knows it. I actually had starcraft for four years I just never got into map making till now.
But thank you for your help kind sir and that goes to the rest.