EventsUnit-AnyUnitdiesLocalVariablesConditionsOrConditions(Ownerof(Triggeringunit))==1(Ownerof(Triggeringunit))==2(Ownerof(Triggeringunit))==3(Ownerof(Triggeringunit))==4(Ownerof(Triggeringunit))==5(Ownerof(Triggeringunit))==6(Ownerof(Triggeringunit))==7(Ownerof(Triggeringunit))==8ActionsUI-Display("<s val="ABChoiceButtonText">"+((Nameofplayer(Ownerof(Killingunit)))+(" killed "+((Nameofplayer(Ownerof(Triggeringunit)))+"!"))))for(Allplayers)toSubtitleareaGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfOrConditions(Unittypeof(Triggeringunit))==HybridObliterator(Zhakul'das)ThenSound-StopTankSongAfterFadingSound-PlayTHanson03MusicChoiceBfor(Allplayers)(at100.0%volume,skipthefirst0.0seconds)Variable-Seta2=(Randomintegerbetween1and4)ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfOrConditions(Unittypeof(Triggeringunit))==Buster(Unittypeof(Triggeringunit))==Zergling(Unittypeof(Triggeringunit))==Infestor(Spellcaster)(Unittypeof(Triggeringunit))==HybridObliterator(Zhakul'das)ThenUI-Display"Respawning in 20 seconds."for(Playergroup((Ownerof(Triggeringunit))))toSubtitleareaGeneral-Wait20.0GameTimesecondsVariable-Seta2=(Randomintegerbetween1and3)General-If(Conditions)thendo(Actions)elsedo(Actions)Ifa2==1ThenUnit-Create1Busterforplayer(Ownerof(Triggeringunit))at(RandompointinSpawnRegion)facing270.0degrees(NoOptions)Variable-SetUnit[(Ownerof(Triggeringunit))]=(Lastcreatedunit)Camera-Panthecameraforplayer(Ownerof(Triggeringunit))to(Positionof(Lastcreatedunit))over0.0secondswithExistingVelocity%initialvelocity,10%deceleration,andDoNotusesmartpanningUI-Display"You are a Buster. Get near survivor..."for(Playergroup((Ownerof(Triggeringunit))))toSubtitleareaElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)Ifa2==2ThenGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfnumMaulers==0ThenVariable-SetnumMaulers=1Unit-Create1Zerglingforplayer(Ownerof(Triggeringunit))at(RandompointinSpawnRegion)facing270.0degrees(NoOptions)UI-Display"You are a Zergling. Get near surviv..."for(Playergroup((Ownerof(Triggeringunit))))toSubtitleareaVariable-SetUnit[(Ownerof(Triggeringunit))]=(Lastcreatedunit)Camera-Panthecameraforplayer(Ownerof(Triggeringunit))to(Positionof(Lastcreatedunit))over0.0secondswithExistingVelocity%initialvelocity,10%deceleration,andDoNotusesmartpanningElseUnit-Create1Busterforplayer(Ownerof(Triggeringunit))at(RandompointinSpawnRegion)facing270.0degrees(NoOptions)UI-Display"You are a Buster. Get near survivor..."for(Playergroup((Ownerof(Triggeringunit))))toSubtitleareaVariable-SetUnit[(Ownerof(Triggeringunit))]=(Lastcreatedunit)Camera-Panthecameraforplayer(Ownerof(Triggeringunit))to(Positionof(Lastcreatedunit))over0.0secondswithExistingVelocity%initialvelocity,10%deceleration,andDoNotusesmartpanningElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)Ifa2==3ThenUnit-Create1Infestor(Spellcaster)forplayer(Ownerof(Triggeringunit))at(RandompointinSpawnRegion)facing270.0degrees(NoOptions)UI-Display"You are a Infestor. Stay out of sig..."for(Playergroup((Ownerof(Triggeringunit))))toSubtitleareaVariable-SetUnit[(Ownerof(Triggeringunit))]=(Lastcreatedunit)Camera-Panthecameraforplayer(Ownerof(Triggeringunit))to(Positionof(Lastcreatedunit))over0.0secondswithExistingVelocity%initialvelocity,10%deceleration,andDoNotusesmartpanningElseElse
It simply won't create the units. It does every single other function but it just refuses to make any units.
Random point doesn't do what you think it does. It takes a random Point (capital P!), not a random point, in the region. In other words, unless you placed a Point in the region... it won't work.
Suggestion is to create it at a random X and Y position between the minimum X and Y of the region and its maximum X and Y.
I have a trigger that prints a message every single time a unit enters the Entire Map, and it doesnt get called when the Unit creation occurs. Is it possible it is being spawned outside the bounds of the whole map? Doesn't seem likely.
Random point doesn't do what you think it does. It takes a random Point (capital P!), not a random point, in the region. In other words, unless you placed a Point in the region... it won't work.
Suggestion is to create it at a random X and Y position between the minimum X and Y of the region and its maximum X and Y.
That's sooo totally not true. Random Point in Region CREATES a point with random X/Y coordinates inside the region and returns it. You do not need any pre-made points or anything in there.
Does the game send you a message like "You are a Buster..." or one of the others? So does it enter into the creation phase?
If yes, then I suggest you try to use local variables to store the Triggering Unit. Maybe Triggering Unit gets reset after waiting 20 seconds.
If you don't enter creation phase, then something with your If-Then stuff is wrong.
It simply won't create the units. It does every single other function but it just refuses to make any units.
Random point doesn't do what you think it does. It takes a random Point (capital P!), not a random point, in the region. In other words, unless you placed a Point in the region... it won't work.
Suggestion is to create it at a random X and Y position between the minimum X and Y of the region and its maximum X and Y.
I have a trigger that prints a message every single time a unit enters the Entire Map, and it doesnt get called when the Unit creation occurs. Is it possible it is being spawned outside the bounds of the whole map? Doesn't seem likely.
@DamnNoHtml: Go
Could you post a screenshot of your trigger? I'll see if i find the bug.
Do you or do you not have Points in your SpawnRegion Region?
That's sooo totally not true. Random Point in Region CREATES a point with random X/Y coordinates inside the region and returns it. You do not need any pre-made points or anything in there.
@DamnNoHtml: Go
Does the game send you a message like "You are a Buster..." or one of the others? So does it enter into the creation phase?
If yes, then I suggest you try to use local variables to store the Triggering Unit. Maybe Triggering Unit gets reset after waiting 20 seconds.
If you don't enter creation phase, then something with your If-Then stuff is wrong.
@s3rius: Go
I'll give setting the Triggering Unit as a variable a try. That type of solution has helped in the past, thanks.