CAn some one please help, thsi trigger did not work and at the time of 0.75 seconds it froze the game and made it crash because it had a trigger error. Please help.
No wonder its an infinite loop, he has 0 Ultralisks at the start since there's always at least 1 player in the game... It kicks right into the infinite loop and has no chance of breaking it, so it creates an infinite amount of ultralisks.
P.S.: Please don't save images as .tga use .jpg when posting them here.
It didnt make any Ultralisks i dont think
just at the time of 0.75 it froze with about 50 trigger errors pointing to this trigger. So what can i do to fix it
\
I haven't worked with those actions but.. there is another thing you're doing wrong I think.
You create unit for computer, then you select that unit for computer and finally you order TRIGGERING UNIT to move somewhere.
Triggering unit is not selected unit. Triggering unit is the unit which somehow participates in triggers event. Your event is pereodic timer.. so I suppose "Triggering unit" will mean "no unit". Maybe that's one of sources for error.
What you want to do is replace "Triggering unit" with "Last created unit".
P.S. I remember map you're remaking from SC1. Fun stuff, good luck.
Edit:
Okay, on the other hand.. Look what you have done:
If there are less ultralisks than there are players
Game will start creating ultralisks.. forever. It will repeat those 3 actions forever. I suppose creating 100-200 units in this way would cause a drop in performance... Trying to create infinite number is a guaranteed crash.
You don't need "Repeat actions forever". This isn't sc1 where you needed to "preserve trigger". Triggers will fire each time event is met, unless specially stated otherwise.
yeah just before your post i realised the triggering player thing but you have explained even easier for me And the REpeat actions forever is really obvious to me now thanks ill check see if it crashes the editor and the game again :)
yepdidnt crash nowa new problem, The Ultrlisk wont atk its just sitting there.
EDIT @ Hobrow Lol nice pic and thanks for help and thanks to you duckman!
Use "triggering unit" only when event mentions triggering unit. Also if "triggering unit" is grayed out it means that there is no "triggering unit".
The way you order them is weird to say the least. For all I know your unit groups might be empty >.>
Provide more information.
Or just think over the stuff you're doing. Why are there 8 probe groups? One for each player? Why don't you just have 1 group for ultras and 1 for probes? What exacly are you trying to do?
Cause this is what you're doing in that order trigger:
Order random ultralisk to attack last unit from probe group[0]. Are there any units in that group at all? And also for some reason in one trigger you're using probe group[8] and in other you're using probe group[0].. what's up with that?
Use "triggering unit" only when event mentions triggering unit. Also if "triggering unit" is grayed out it means that there is no "triggering unit".
The way you order them is weird to say the least. For all I know your unit groups might be empty >.>
Provide more information.
Or just think over the stuff you're doing. Why are there 8 probe groups? One for each player? Why don't you just have 1 group for ultras and 1 for probes? What exacly are you trying to do?
Cause this is what you're doing in that order trigger:
Order random ultralisk to attack last unit from probe group[0]. Are there any units in that group at all? And also for some reason in one trigger you're using probe group[8] and in other you're using probe group[0].. what's up with that?
Actually if the "triggering unit" or "triggering player" is greyed out ..... they still generally work as long as there is a "player or unit" involved in the event.
Do not believe the greyed out stuff it might still work.... thats why you use it and then upput it to a text message to see what the results are
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
SO do you use array for unit groups and/or player groups?
Depends, what are you using them for? I use arrays for a ton of stuff, but for some things there just is no point in using arrays... I only use arrays if I want to find a value that depends on a certain other value (Like lets say I save a text for each player, that might be used as a name for that player (like in mafia), and I when that player does something, lets say click a dialog, I want a text message with that text, I just use (TextVariable[triggering player]) to get that players text, instead of using a huge "if then else" action checking for each player and then using the appropriate text)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
CAn some one please help, thsi trigger did not work and at the time of 0.75 seconds it froze the game and made it crash because it had a trigger error. Please help.
No wonder its an infinite loop, he has 0 Ultralisks at the start since there's always at least 1 player in the game... It kicks right into the infinite loop and has no chance of breaking it, so it creates an infinite amount of ultralisks.
P.S.: Please don't save images as .tga use .jpg when posting them here.
It didnt make any Ultralisks i dont think just at the time of 0.75 it froze with about 50 trigger errors pointing to this trigger. So what can i do to fix it \
I haven't worked with those actions but.. there is another thing you're doing wrong I think. You create unit for computer, then you select that unit for computer and finally you order TRIGGERING UNIT to move somewhere. Triggering unit is not selected unit. Triggering unit is the unit which somehow participates in triggers event. Your event is pereodic timer.. so I suppose "Triggering unit" will mean "no unit". Maybe that's one of sources for error.
What you want to do is replace "Triggering unit" with "Last created unit".
P.S. I remember map you're remaking from SC1. Fun stuff, good luck.
Edit:
Okay, on the other hand.. Look what you have done:
If there are less ultralisks than there are players
Game will start creating ultralisks.. forever. It will repeat those 3 actions forever. I suppose creating 100-200 units in this way would cause a drop in performance... Trying to create infinite number is a guaranteed crash.
You don't need "Repeat actions forever". This isn't sc1 where you needed to "preserve trigger". Triggers will fire each time event is met, unless specially stated otherwise.
Yeah creating an infinite amount of ultralisks is totally not the problem....
yeah just before your post i realised the triggering player thing but you have explained even easier for me And the REpeat actions forever is really obvious to me now thanks ill check see if it crashes the editor and the game again :) yepdidnt crash nowa new problem, The Ultrlisk wont atk its just sitting there.
EDIT @ Hobrow Lol nice pic and thanks for help and thanks to you duckman!
Use "triggering unit" only when event mentions triggering unit. Also if "triggering unit" is grayed out it means that there is no "triggering unit".
The way you order them is weird to say the least. For all I know your unit groups might be empty >.>
Provide more information.
Or just think over the stuff you're doing. Why are there 8 probe groups? One for each player? Why don't you just have 1 group for ultras and 1 for probes? What exacly are you trying to do?
Cause this is what you're doing in that order trigger:
Order random ultralisk to attack last unit from probe group[0]. Are there any units in that group at all? And also for some reason in one trigger you're using probe group[8] and in other you're using probe group[0].. what's up with that?
oh, well i dint know what the 8 [8] or the [0] did .... And the ultralisk spawn is all that ivedone for ultras
EDIT also what does array do?
Actually if the "triggering unit" or "triggering player" is greyed out ..... they still generally work as long as there is a "player or unit" involved in the event.
Do not believe the greyed out stuff it might still work.... thats why you use it and then upput it to a text message to see what the results are
@SouLCarveRR: Go Ok thanks, but i still dont know arrays and stuff could you please help
@CrazyTwigman: Go
arrays are a common programing concept..... they work about the same in sc2 except you can not resize them at run-time
http://en.wikipedia.org/wiki/Array_data_type
heres a tutorial/ example of how you can use arrays
http://www.sc2mapster.com/forums/resources/tutorials/12641-region-arrays-events-ownership-resources/
SO do you use array for unit groups and/or player groups?
mini bump
Uhh, you could. Or you could also just use a Unit Group or Player Group type.
Depends, what are you using them for? I use arrays for a ton of stuff, but for some things there just is no point in using arrays... I only use arrays if I want to find a value that depends on a certain other value (Like lets say I save a text for each player, that might be used as a name for that player (like in mafia), and I when that player does something, lets say click a dialog, I want a text message with that text, I just use (TextVariable[triggering player]) to get that players text, instead of using a huge "if then else" action checking for each player and then using the appropriate text)