Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Creating Units Problem, Wtf, never happened before

Creator: blacklight28
Time: Oct 26 2007, 11:49 pm

Post #1     blacklight28 Oct 26 2007, 11:49 pm

[Avatar]
 offline contact
When I put in the triggers, "Create 1 'unit'" it created 2. It always creates double the amount that I want created.
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #2     Kenoli Oct 26 2007, 11:55 pm

[Avatar]
 offline contact
I guess you have the trigger assigned to a force or all players, in which case there are multiple copies of the trigger.
Top

Post #3     Killer2121 Oct 27 2007, 12:01 am

[Avatar]
 offline contact
just make sure u put it on "player 1-8"
(user posted image)
Top

Post #4     who Oct 27 2007, 12:08 am

[Avatar]
someone09
 offline contact
It depends. If it's set to more than 1 player and it creates the unit for a specific player, like Player 1, then it'll make multiple units if the other players in the trigger are present.
It shouldn't do it if it's set to Current Player.
(user posted image)
Top

Post #5     blacklight28 Oct 27 2007, 12:15 am

[Avatar]
 offline contact
Wow, I'm retarded. Anyway, another question for bounds. When you bring your bounder to the next level how do you disable the previous obstacle?
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #6     who Oct 27 2007, 12:18 am

[Avatar]
someone09
 offline contact
Have each obstacle only run if a switch/counter is set, and clear the switch/counter and set the next one after you beat the level.
(user posted image)
Top

Post #7     blacklight28 Oct 27 2007, 7:24 pm

[Avatar]
 offline contact
Can you give me the triggers for that? I've seen the switches things in different bounds but I don't know how it works.
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #8     Kenoli Oct 28 2007, 12:25 am

[Avatar]
 offline contact
This might be helpful.
http://www.maplantis.org/index.php?map=1269
Top

Post #9     blacklight28 Oct 28 2007, 1:28 am

[Avatar]
 offline contact
Don't really get it...
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #10     Kenoli Oct 28 2007, 1:47 am

[Avatar]
 offline contact
Each obstacle has a number. A counter controls which one is active. When an obstacle is beaten the counter goes up by one, which ends the last obstacle and starts the next one.
Top

Post #11     blacklight28 Oct 28 2007, 7:17 pm

[Avatar]
 offline contact
Ooooh! I get it! Thx for the help but now for my second obstacle of my bound has a wait problem....
Attachments:
scx file
mah bound.scx (41.72 kb)
2 hits.
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #12     who Oct 28 2007, 7:56 pm

[Avatar]
someone09
 offline contact
it may have a wait problem at the start of the next level, if there is no delay between the two levels. the waits in that level and the next level will block each other temporarily.
(user posted image)
Top

Post #13     blacklight28 Oct 28 2007, 8:09 pm

[Avatar]
 offline contact
I'm saying like the explosion/death thingy for the bound isn't happening at the right time. It's delayed for a looong time and if I don't put any waits. It's just like a million guys spawning and dieing right when I spawn. Check the map and see if you can find my error.
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #14     Kenoli Oct 29 2007, 3:53 am

[Avatar]
 offline contact
The hypers are assigned to All Players. AKA Massive wait blocks.
Take them off All Players and put them on Force 1. That should work as long as you don't use waits with those players.
Top

Post #15     blacklight28 Oct 29 2007, 4:56 am

[Avatar]
 offline contact
The waits use to be on Force 1, then I put them on for All Players. Also, how would they be massive if they're waits of 0 milliseconds. And it's the second obstacle that's having the problems just FYI.
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #16     Ryan Oct 29 2007, 5:58 am

[Avatar]
I care not for your little life.
 offline contact
If you don't know how switches work, I'll explain them to you. If you DO know how they work, I can't believe I just wasted my time making this description.

Think of a light switch.
You flick it on, the light bulb goes bright.
You flick it off, the light bulb dims.

It's generally the same concept in StarCraft.

(Condition):
Switch 1* is set.
(Action):
[Actions] ~ Put in the actions you want. (The light bulb goes bright)

This trigger is turning the light bulb on.

Generally a switch is given Preserve Trigger as an action, because most people use Switches so triggers may be turned on and off, such as in a bound or a mass game. Mass games use different switches to create different units, such as a player starting off with spawning Tanks, gets 100 kills, then starts spawning Marines.
In bounds, switches are used for diffferent obstacles.

Normally there will only be an Action present for when a Switch is set, but you may also place Actions for when a Switch is cleared.

To set/clear a Switch, you must have a different trigger.

(Condition):
Player 1 brings at least 1 Men to Location*
(Action):
Set Switch 1*
Preserve Trigger*

(Condition):
Player 1 brings exactly 0 Men to Loaction*
(Action):
Clear Switch 1*
Preserve Trigger*

When Player 1 brings at least 1 Men to Location, the switch will be set. (The light bulb goes bright)
Let's say Switch 1 creates a Marine at Location 2.

(Player 1 brings at least 1 Men to Location / Set Switch 1)
(Switch 1 is set / Create 1 Marine at Location 2)

When Player 1 brings exactly 0 Men to Location, the switch will be cleared. (The light bulb dims)
Let's say Switch 1 cleared kills a Marine at Location 2.

(Player 1 brings exactly 0 Men to Location / Clear Switch 1)
[Normally there is no action to a Cleared Switch, but if necessary...]
(Switch 1 is cleared / Kill 1 Marine for Player 1 at Location 2)

In a bound, you'd apply the same concept except creating/killing at different Locations and normally switch 1 must always be set first.

(Condition):
Always*
(Actions):
Set Switch 1*

(Condition):
Switch 1 is Set*
(Actions):
Create 1 Wraith at Location*
Create 1 Wraith at Location 2*
Wait 500 miliseconds*
Kill all Any Unit for All Players at Location*
Kill all Any Unit for All Players at Location 2*
Preserve Trigger*

To set a new obstacle you'd put...

(Condition):
Force 1 brings at least 1 Men to Location 3*
(Actions):
Clear Switch 1*
Set Switch 2*

(Condition):
Switch 2 is set*
(Actions):
Create 1 Wraith at Location 4*
Create 1 Wraith at Location 5*
Wait 500 miliseconds*
Kill all Any Unit for All Players at Location 4*
Kill all Any Unit for All Players at Location 5*
Preserve Trigger*

I really hope this explanation helps. Some things may be left unexplained and you may not understand some of the things I'm trying to say, so hopefully maybe someone else could help you to understand.


* ~ Means optional. This action / condition may or may not be required for your triggers to work.
(signature image)
Prepare to drop.
Top

Post #17     Kenoli Oct 29 2007, 6:49 am

[Avatar]
 offline contact
QuoteThe waits use to be on Force 1, then I put them on for All Players. Also, how would they be massive if they're waits of 0 milliseconds. And it's the second obstacle that's having the problems just FYI.
A wait 0 does not wait 0 milliseconds. That is no time at all. For whatever reason, they ends up waiting about 84 milliseconds instead. (on fastest)
If you have lots of these waits running and blocking each other all the time, other waits can end up with long delays.

The waits in higher triggers have a sort of priority. The reason the first obstacle trigger isn't having a problem is because it's actually above the hyper triggers. You could fix the second one by moving it up there too.
Top

Post #18     NudeRaider Oct 29 2007, 12:31 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from KenoliThe waits in higher triggers have a sort of priority. The reason the first obstacle trigger isn't having a problem is because it's actually above the hyper triggers. You could fix the second one by moving it up there too.

This method of fixing sounds familiar, lawl
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #19     blacklight28 Oct 31 2007, 7:00 am

[Avatar]
 offline contact
I can't put both of them in front of the hypers, I put the second one first but now the first one is a bit slower.
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top

Post #20     blacklight28 Nov 3 2007, 2:07 am

[Avatar]
 offline contact
If I put the second obstacle before the first, the first obstacle has wait problems! HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[11:49 pm] O)FaRTy1billion[MM] -- At least it wasn't a red-hot iron nail.
[11:48 pm] O)FaRTy1billion[MM] -- It'd be ever so fun.
[11:48 pm] O)FaRTy1billion[MM] -- loooooooooool
[11:46 pm] blacklight28 -- OW!! I DONT EVEN WANNA THINK ABOUT THAT
[11:45 pm] [Echo]:] -- This one time, I wondered if I can jam a pencil down my urethra...
Top
0 members in this topic: None
+ 0 guest(s)


[06:31 pm]
MePHiStO_IS_GoD -- nicce wanna game on east?
[06:24 pm]
[DeVouReR]:] -- now
[06:15 pm]
MePHiStO_IS_GoD -- still there Dev?
[06:05 pm]
MePHiStO_IS_GoD -- er Afternoon
[06:04 pm]
MePHiStO_IS_GoD -- Good morning SEN
[05:56 pm]
madroc -- there are some things even i cannot fix, i am moving on now
[05:48 pm]
madroc -- I feel bad
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions