I need help with the triggers that spawn the units in my map. I've been trying for the last couple hours to figure this out, and I still can't. Here's the trigger in question:
Basically in my map there are(or will be, I haven't implemented it yet) bases that are created by the player in game. In my map there are also squares. These 'bases' are placed in the center of square, and from the moment this building (yes, only one) it will continuously spawn a unit. The unit is changed whenever the player's credits move above the min and max in the last trigger (I plan on duplicating this for the next level and so on). The problem is that it
1) doesn't switch to spawning the unit specified in the next trigger
2) I need to have the units spawning at these player created buildings and I sure as hell don't want to make fifty bazillion regions/points for every 'square' on the map nor do I wish to trigger such a mess. At this point in time I don't even know if this will work for all of these 'buildings'
Because this is a little confusing if you guys want I could attach the map and you guys could directly go and fix it or tell me whats wrong. Though I warn you there is no comments or anything to tell you how it works, so ask me if you have any questions.
Your base problem lies in the event unit enter region: entire map. With this event your trigger will fire only once, when your unit is placed on the map. And start the loop. When the loop is terminated the trigger will not start it again since your unit neither leave or enter the specified region: entire map. Try using a different event.
Your base problem lies in the event unit enter region: entire map. With this event your trigger will fire only once, when your unit is placed on the map. And start the loop. When the loop is terminated the trigger will not start it again since your unit neither leave or enter the specified region: entire map. Try using a different event.
Hope this help
Any suggestions as to which event though? I've tried changing it but I can't find anything else suitable... :(
I found nothing suitable. You will need to use another method of loop terminating. In your case you might actually need to pause the loop. (wait for condition, wait for trigger to start/finish) and then give it back.
I'm not clear on what you want to do but i think you want to spawn unit based on mineral( the more the higher tier unit is) Then dont terminate the loop, use a variable for unit type and spawn that. Use a trigger with event player property(mineral) change and set variable to specific unit.
I need help with the triggers that spawn the units in my map. I've been trying for the last couple hours to figure this out, and I still can't. Here's the trigger in question:
Basically in my map there are(or will be, I haven't implemented it yet) bases that are created by the player in game. In my map there are also squares. These 'bases' are placed in the center of square, and from the moment this building (yes, only one) it will continuously spawn a unit. The unit is changed whenever the player's credits move above the min and max in the last trigger (I plan on duplicating this for the next level and so on). The problem is that it
1) doesn't switch to spawning the unit specified in the next trigger
2) I need to have the units spawning at these player created buildings and I sure as hell don't want to make fifty bazillion regions/points for every 'square' on the map nor do I wish to trigger such a mess. At this point in time I don't even know if this will work for all of these 'buildings'
Because this is a little confusing if you guys want I could attach the map and you guys could directly go and fix it or tell me whats wrong. Though I warn you there is no comments or anything to tell you how it works, so ask me if you have any questions.
I honestly cant figure this out please help!! :(
@ST4RKiLL3R: Go
Your base problem lies in the event unit enter region: entire map. With this event your trigger will fire only once, when your unit is placed on the map. And start the loop. When the loop is terminated the trigger will not start it again since your unit neither leave or enter the specified region: entire map. Try using a different event.
Hope this help
Any suggestions as to which event though? I've tried changing it but I can't find anything else suitable... :(
@ST4RKiLL3R: Go
I found nothing suitable. You will need to use another method of loop terminating. In your case you might actually need to pause the loop. (wait for condition, wait for trigger to start/finish) and then give it back.
I'm not clear on what you want to do but i think you want to spawn unit based on mineral( the more the higher tier unit is) Then dont terminate the loop, use a variable for unit type and spawn that. Use a trigger with event player property(mineral) change and set variable to specific unit.
Why not use the event: "Unit - Any Unit creates a unit with ability Any or behavior Any"
If the 'building unit' is created that is...