Moderator
M
Moderator
01:47, 16th Jul 2012
Magtheridon96: Approved.
This is an excellent system.
There are some speed quirks that could be taken into consideration, but I find it hard to care.
Good job. This is an ideal system that does no extra operations (algorithmically speaking)
Magtheridon96: Approved.
This is an excellent system.
There are some speed quirks that could be taken into consideration, but I find it hard to care.
Good job. This is an ideal system that does no extra operations (algorithmically speaking)
Well, it does it's job pretty well. Just a few tips:
Something like the below trigger would suffice:
This would be much better. The ResourceSetup trigger would save
the values into your hashtable, making this resource much easier for
the user to ... use.
- When a unit is constructed, you don't need to loop to determine
whether you should add him to the group or not, you can save a
boolean into the hashtable to determine whether the structure would
produce a resource or not and load that instead. - There needs to be an easier way to add resources to the system.
Something like the below trigger would suffice:
-
Init
-
Events
-
Map Initialization
-
-
Conditions
-
Actions
-
-------- Resource Types --------
-
Set ResourceTypeFood = 1
-
Set ResourceTypeLumber = 2
-
Set ResourceTypeGold = 3
-
Set ResourceTypeLaz0rs = 4
-
-------- --- --------
-
Set Resource_Building = Meathouse
-
Set Resource_Type = ResourceTypeFood
-
Set Resource_Income = 60
-
Run ResourceSetup <gen> (ignoring conditions)
-
-------- --- --------
-
Set Resource_Building = GoldMine
-
Set Resource_Type = ResourceTypeGold
-
Set Resource_Income = 15
-
Run ResourceSetup <gen> (ignoring conditions)
-
-
the values into your hashtable, making this resource much easier for
the user to ... use.