Unit Spawning
Feb 8 2009, 9:57 pm
By: InvisibleDerek  

Feb 8 2009, 9:57 pm InvisibleDerek Post #1



Ok i have a trigger that goes like
"Player 7 has suffered "0" deaths of units 'x'"

"Create 1 unit at location 'x' for player 7"
"Kill 1 unit at locations 'x' for player 7
"wait 300 milliseconds"
"Preserve Trigger"

Ok but when the unit spawns it spawns 3 of the unit instead of only 1, so how can i make it so its only 1 unit



None.

Feb 8 2009, 9:59 pm xYoshix Post #2



Is the trigger for one player or a force?
If it is for a force, it spawns however people there are in the force



None.

Feb 8 2009, 10:00 pm Kaias Post #3



Quote from InvisibleDerek
Ok i have a trigger that goes like
"Player 7 has suffered "0" deaths of units 'x'"

"Create 1 unit at location 'x' for player 7"
"Kill 1 unit at locations 'x' for player 7
"wait 300 milliseconds"
"Preserve Trigger"

Ok but when the unit spawns it spawns 3 of the unit instead of only 1, so how can i make it so its only 1 unit
The 'Kill' action does not add a death to the death count. You can instead just use the Set Deaths action. Also, make sure the trigger isn't activating for multiple players if you don't want it to.



None.

Feb 8 2009, 10:05 pm InvisibleDerek Post #4



Well its only for 1 player and i dont know how to set death counts



None.

Feb 8 2009, 10:06 pm xYoshix Post #5



Quote from InvisibleDerek
Well its only for 1 player and i dont know how to set death counts
Do the action 'set deaths'



None.

Feb 8 2009, 10:12 pm InvisibleDerek Post #6



well im trying to make a unit spawn and then have it die instantly. I need a trigger to make it so only 1 unit spawns instead of 3 at a time... im not sure how exactly to make a trigger using the set death's.



None.

Feb 8 2009, 10:15 pm xYoshix Post #7



I dont see anything wrong with this trigger....are u sure its not directed to force 1 or something?



None.

Feb 8 2009, 10:18 pm poison_us Post #8

Master has given Dobby a doctorate! Dobby is free!

Can you attach the file so we can try and figure out what's wrong?




Feb 8 2009, 10:31 pm InvisibleDerek Post #9



ok heres the file, and no its only directed to player 7

Attachments:
Bound Defense.scm
Hits: 3 Size: 41.98kb



None.

Feb 8 2009, 10:35 pm xYoshix Post #10



Quote from InvisibleDerek
\ no its only directed to player 7

It is directed to all players. Change it to player 7



None.

Feb 9 2009, 4:41 am poison_us Post #11

Master has given Dobby a doctorate! Dobby is free!

Win?
Or is the trigger still fail?




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: jy2413804