what is better

kaboo

New Member
Reaction score
45
Code:
2 unit group variables - team1 and team2

Code:
1 unit group variable with array[2] - team[1] and team[2]

whats your opinion and why?
 

The-Shadows

New Member
Reaction score
12
i prefer the second code
bcause it only use 1 variable instead two or more.
plus it is easy to modify or use it later for loop trigger.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, both basically the same just that I think they both have their advantages.

The array is more versatile in loops and such ( As The-Shadows said :D) and can sometimes be easier to handle...

The "Two-variables" version is better simply because it's much easier to divide, like if you'd create a spell and it would do something with allies in a group, and something else for the enemies in it.
Then you could use two different unit-group variables, and name them something like "Caster_Allies" and "Caster_Enemies" so you can easily keep track of which one of the two to use in different occasions :D

Those are just my oppinions ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top