Staredit Network

Staredit Network -> UMS Assistance -> Create Units At Location....ahhhh
Report, edit, etc...Posted by Kusion on 2004-08-29 at 16:21:22
ok i made the trigger like this

=Condition=
-When Player 1 has sufferd a death of (unit)

=Actions=
-Create 1 (unit) at (location) for Player 1
-Preserve Trigger
-Comment (comment)

but it continues to make extra units at location when i want it to be 1...how? confused.gif
Report, edit, etc...Posted by TheOddAngel on 2004-08-29 at 16:43:56
Conditions:
Player 1 has suffered 1 death of unit

Actions:
Create 1 (unit) at (location) for player 1
wait for 10 milaseconds
Set Deathcount for player 1 to 0
preserve trigg

That Should Work wink.gif

You might wana try a Search next time
Im sure this has been answered biggrin.gif
Report, edit, etc...Posted by Kusion on 2004-08-29 at 16:52:57
ya but will it only make 1 of the unit? huh.gif
Report, edit, etc...Posted by CheeZe on 2004-08-29 at 16:54:30
i think you should have the set deaths as the first trigger instead of the second (after the wait). I'm not sure if it will do anything since i'm not an expert on EXACTLY how waits work...
Report, edit, etc...Posted by Paella on 2004-08-29 at 16:59:24
You don't even need the wait trigger, but wraith you need to reset the deaths because that way the conditions for the trigger are not set anymore, but they can be again. If you want this to happen only once then don't use the Preserve Trigger action, because that makes the Trigger keep going and going.
Report, edit, etc...Posted by LegacyWeapon on 2004-08-29 at 17:04:08
QUOTE
Condition:
-When Player 1 has suffered at least 1 death of (unit)

Actions:
-Create 1 (unit) at (location) for Player 1
-Preserve Trigger
-Comment (comment)


Well, if you only want this trigger to happen once, take out the preserve trigger. If you want a unit to spawn every time p1 dies then

QUOTE
Condition:
-When Player 1 has suffered at least 1 death of (unit)

Actions:
-Create 1 (unit) at (location) for Player 1
-Set deaths for (unit) subtract 1 for Player 1
-Preserve Trigger
-Comment (comment)
Report, edit, etc...Posted by CheeZe on 2004-08-29 at 17:09:02
...I still think set deaths should go before the create unit. pinch.gif
Report, edit, etc...Posted by x BakaPeter x on 2004-08-29 at 17:17:28
i think it goes after. might work more properly?
Report, edit, etc...Posted by LegacyWeapon on 2004-08-29 at 17:19:20
no because the trigger can activate more than once when the condition is filled

Its best if you disrupt the condition first

so you can get like 5 spawns with fast triggers if it goes after
Report, edit, etc...Posted by NeoNightmareX on 2004-08-29 at 18:22:44
showoff.gif i kno the prob and its like firebolt says...DONT PRESERVE TRIGGER cause its like he says...i mean if u want someone on lets say a special forces when he kills 1 unit, does he keep gettin the score for it after it dies? no so dont preserve trigger...eh but wat do i kno
Report, edit, etc...Posted by greenreaper on 2004-08-29 at 18:31:03
You could use SC Trigger and for every kill make it set a switch.

TRIGGER:
Condition:
Switch "Kills" is set

Actions:
Create 1 unit at location
Clear Switch "Kills"
Preserve Trigger
Report, edit, etc...Posted by Vindexus on 2004-08-29 at 19:05:10
QUOTE(greenreaper @ Aug 29 2004, 05:31 PM)
You could use SC Trigger and for every kill make it set a switch.

TRIGGER:
Condition:
Switch "Kills" is set

Actions:
Create 1 unit at location
Clear Switch "Kills"
Preserve Trigger

No you can't, SCTrigger can't do that.

And it doesn't matter where you put the subtract deaths. It will not fire five times. The WHOLE trigger will run through once before StarCraft checks the trigger again. So it will create the unit and subtract the death, then SC will check the triggers again. When it does, you will have subtracted the death, so it won't fire again.
Report, edit, etc...Posted by LegacyWeapon on 2004-08-29 at 19:10:51
well i still like to get rid of the condition first
Report, edit, etc...Posted by CheeZe on 2004-08-29 at 19:18:00
QUOTE(Vindexus @ Aug 29 2004, 06:05 PM)
QUOTE(greenreaper @ Aug 29 2004, 05:31 PM)
You could use SC Trigger and for every kill make it set a switch.

TRIGGER:
Condition:
Switch "Kills" is set

Actions:
Create 1 unit at location
Clear Switch "Kills"
Preserve Trigger

No you can't, SCTrigger can't do that.

And it doesn't matter where you put the subtract deaths. It will not fire five times. The WHOLE trigger will run through once before StarCraft checks the trigger again. So it will create the unit and subtract the death, then SC will check the triggers again. When it does, you will have subtracted the death, so it won't fire again.

you obviously forgot about hyper triggers wink.gif
Report, edit, etc...Posted by LegacyWeapon on 2004-08-29 at 19:29:53
QUOTE(Vindexus @ Aug 29 2004, 06:05 PM)
QUOTE(greenreaper @ Aug 29 2004, 05:31 PM)
You could use SC Trigger and for every kill make it set a switch.

TRIGGER:
Condition:
Switch "Kills" is set

Actions:
Create 1 unit at location
Clear Switch "Kills"
Preserve Trigger

No you can't, SCTrigger can't do that.

And it doesn't matter where you put the subtract deaths. It will not fire five times. The WHOLE trigger will run through once before StarCraft checks the trigger again. So it will create the unit and subtract the death, then SC will check the triggers again. When it does, you will have subtracted the death, so it won't fire again.

^ i think hes right tho... becuase if the trigger has a wait in it, will it fire while the condition holds true?
Report, edit, etc...Posted by Res-Kevin on 2004-08-29 at 19:44:52
QUOTE(CheeZe(U) @ Aug 29 2004, 06:18 PM)
QUOTE(Vindexus @ Aug 29 2004, 06:05 PM)
QUOTE(greenreaper @ Aug 29 2004, 05:31 PM)
You could use SC Trigger and for every kill make it set a switch.

TRIGGER:
Condition:
Switch "Kills" is set

Actions:
Create 1 unit at location
Clear Switch "Kills"
Preserve Trigger

No you can't, SCTrigger can't do that.

And it doesn't matter where you put the subtract deaths. It will not fire five times. The WHOLE trigger will run through once before StarCraft checks the trigger again. So it will create the unit and subtract the death, then SC will check the triggers again. When it does, you will have subtracted the death, so it won't fire again.

you obviously forgot about hyper triggers wink.gif

it doesn't matter which way you do the triggers.
but i suggest you get rid of the wait.

QUOTE("NeoNightmareX")
i kno the prob and its like firebolt says...DONT PRESERVE TRIGGER cause its like he says...i mean if u want someone on lets say a special forces when he kills 1 unit, does he keep gettin the score for it after it dies? no so dont preserve trigger...eh but wat do i kno


preserve trigger. and do the Set Deaths For Player 1: Subtract 1 Death of Any Unit

QUOTE("dwfirebolt99")
^ i think hes right tho... becuase if the trigger has a wait in it, will it fire while the condition holds true?


i think so
Report, edit, etc...Posted by Daigotsu on 2004-08-29 at 20:34:19
Yeup you have to put a trig to remove the kills or deaths.
Report, edit, etc...Posted by LegacyWeapon on 2004-08-30 at 08:22:31
QUOTE(dwfirebolt99 @ Aug 29 2004, 04:04 PM)
QUOTE

Condition:
-When Player 1 has suffered at least 1 death of (unit)

Actions:
-Create 1 (unit) at (location) for Player 1
-Set deaths for (unit) subtract 1 for Player 1
-Preserve Trigger
-Comment (comment)

did you read this post before posting?
make sure what you say does not repeat what someone has already said
otherwise its kinda pointless closedeyes.gif
Report, edit, etc...Posted by .Coko[CK] on 2004-08-30 at 09:49:40
This argument will stop, it really doesn't matter where you put it if its all happening around the same time, because it will read the whole trigger and run it once, and so will be cleared for the next time or set to zero deaths, therefore it won't repeat itself, even with Hyper Triggers.

You could place your Preserve Trigger wherever you want as well, i place mine at the beginning, with my Comment and everything after it. It makes no difference!

Vindexus WAS RIGHT! keke, gg, nr, ul!
Report, edit, etc...Posted by LegacyWeapon on 2004-08-30 at 10:13:28
ahhh, thank you for the clarification
at least someone is ahead and tested this
Next Page (1)