Staredit Network

Staredit Network -> UMS Assistance -> Stoping flow of units
Report, edit, etc...Posted by OriginalG. on 2004-08-31 at 18:41:29
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.
Report, edit, etc...Posted by chooie333 on 2004-08-31 at 18:55:37
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.
Report, edit, etc...Posted by Vindexus on 2004-08-31 at 18:56:22

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.
Report, edit, etc...Posted by ShadowBrood on 2004-08-31 at 19:30:12
remember deaths is only when a unit an opposing player controls kills the unit. i spent a week working on this in my bound disgust.gif if u want it to respawn from any sort of death use:

-player-
-conditions-
commands 0 zealot
-actions-
whatever else you wan to happen
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-31 at 20:18:51
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.
Report, edit, etc...Posted by Stardog on 2004-08-31 at 20:30:43
If you don't want to switches perhaps...

Conditions:
Player X commands 0 Zergling

Action:
Create 1 Zergling at Location X
Preserve Trigger
Report, edit, etc...Posted by Stereo on 2004-08-31 at 21:19:43
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 tongue.gif
Report, edit, etc...Posted by OriginalG. on 2004-08-31 at 22:37:12
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.
Report, edit, etc...Posted by Stereo on 2004-09-01 at 00:25:41
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.
Report, edit, etc...Posted by Vindexus on 2004-09-01 at 00:32:52
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.
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 10:58:44
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.
Report, edit, etc...Posted by Stereo on 2004-09-01 at 11:33:28
Try this map, then look at the trigger.
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 14:21:51
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.
Report, edit, etc...Posted by LegacyWeapon on 2004-09-01 at 17:19:53
this should work fine happy.gif
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 18:08:50
QUOTE(LegacyWeapon @ Sep 1 2004, 04:19 PM)
this should work fine  happy.gif
[right][snapback]63017[/snapback][/right]


Thats the same trigger that Stereo had.
Report, edit, etc...Posted by LegacyWeapon on 2004-09-01 at 18:13:00
but did mine work? did u try it?
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 18:15:52
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.
Report, edit, etc...Posted by Battleaxe3 on 2004-09-01 at 18:30:38
To keep broodlings from dieing, create them with triggers.
Report, edit, etc...Posted by LegacyWeapon on 2004-09-01 at 18:32:19
just try mine, cuz when i tried it, it worked

Battleaxe3, read the other posts before actually posting
Report, edit, etc...Posted by Battleaxe3 on 2004-09-01 at 18:42:02
There happy? At least I HELPED him by awnsering a question no1 even awnsered.
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 21:38:08
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.
Report, edit, etc...Posted by LegacyWeapon on 2004-09-01 at 21:42:27
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
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 21:58:09
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:
Report, edit, etc...Posted by DT_Battlekruser on 2004-09-01 at 22:09:01
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)
Report, edit, etc...Posted by OriginalG. on 2004-09-01 at 22:17:14
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.
Next Page (1)