• 0

    posted a message on How do I create a Unit group array

    @ImperialGood: Go

    when i say civilians respawn once all the units it created dies, it also means when all the units the player owns are dead. same thing, since all the units the player owns at the moment has been created from civilian. basically I have the civilians take up 1 supply and every army unit takes up 10 supply each. that way i can have a condition to check to see if the players supply is under 10,that means the whole army must have died. thats the system i have right now that supports up to 9 civilian count (more than enough imo)

    btw how would I go about making a unit group per player? i know how to make a unit group but my original question remains unanswered : how do i add units to a unit group and how do i know which integer stands for which unit?

    Posted in: Triggers
  • 0

    posted a message on How do I create a Unit group array

    @ImperialGood: Go oh yea i guess i meant how to add units to a "2D unit array" like you say just a unit array, not a unit group array which would be an array inside an array.

    To answer your question in short

    i have two teams. one spawns top of map as terran. second team spawns bottom as protoss. its a micro game in which team must kill enemy nexus to win.

    each player starts with one civilian. terran civilians on the left with terran selection of units . for example (choose between 12 marines or 5 hellions, etc.) protoss team on the right.

    when civilian chooses the unit selection, it dies. and army units spawn by nexus. when all army dies, then civilian respawns again for another selection.

    Also : more kills= more minerals. every 300 minerals benchmark you get an extra civilian during selection.

    I had like 30 separate triggers to achieve all this and it works, but i think it caused problems with team setup and also slowed down the map heavily. I was told it could be done in one trigger with a unit array

    Posted in: Triggers
  • 0

    posted a message on How do I create a Unit group array

    EDIT: what i really mean it how to create a Unit array and set up the integers for each unit?

    i have searched all over the forum and surprisingly am not finding the answer to this problem. maybe its more basic than i thought?

    I know how to make a variable and then choose from the dropdown menu "unit group" and choose array, and then make the number as high as i want to.

    but how do i set it so that a certain unit = a certain integer? for example if i have a Unit Group A

    and i want SCV = 1 from Unit Group A.... Probe = 2 from Unit Group A..... marine = 3 from Unit Group A .....

    etc..

    do i have to set it up as an action in a trigger? do i do it elsewhere?

    Posted in: Triggers
  • 0

    posted a message on Units respawning for me but not for other players

    @ImperialGood: Go

    hey thanks for checking it out. as far as the unit attached to region playable map goes<sub>, it is not that same as any unit. "any unit " does not work for me in this case. the region "PLAYABLE MAP" is the region of the map that is the battlefield outside of the civilian area. i dont want it to trigger when a civilian dies, only when units on the battlefield dies. it works this way.</sub>

    also, everyone is hitting 0 supply... i have checked with the players and checked the replays. it seems i got everything right except for the respawn. i dont have a problem with team set up and lobby anymore. its respawning for me and no1 else, it might have to do with something in the "NEXUS SET UP" trigger

    One thing I dont understand from what you said is

    "The logic in "NEXUS SET UP" appears illogical. You might want to update alliances outside the loop and not inside. This way all alliance settings are done in a single call at the end after the teams are built."

    what do you mean by this?

    Posted in: Triggers
  • 0

    posted a message on Units respawning for me but not for other players

    hey there, I have a map i am working on, which is where you have "civilians" to choose an army selection and then kill enemy units, and ULTIMATELY, kill the enemy NEXUS. Its like Team Micro ARENA or NEXUS MICRO wars. When all your army dies, your civilian respawns to choose an army again. TEAM 1 is terran and TEAM 2 is protoss.

    I have been working on this for days but just cant seem to get civilians to respawn. It works great for me but whenever another player is involved, his / her civilians do not respawn.

    Attached is my map, so you can see the triggers

    The triggers that you should be looking at is "CIVILIAN RESPAWN TERRAN 1" "CIVILIAN RESPAWN PROTOSS1" "TEAMS" "NEXUS SET UP"

    anyone out there that can identify the problem?

    Posted in: Triggers
  • To post a comment, please or register a new account.