Troll-Brain
You can change this now in User CP.
- Reaction score
- 85
I'm working for a library which provide custom construction events.
Why ?
Because we don't have a native GetBuilder(), and the way how a structure is build only depends the race of the builder, so therefore if i want GetBuilder() working for all races i need custom events, and a custom GetStructure() also.
I don't need help in how to do it, it's almost done, i just need to add undead and structures built with an ability.
But i need your opinions for these things :
For all races :
The native CANCEL event doesn't fire when the structure is killed/removed during the construction, should it be the case for custom events ?
For human workers :
Several workers can build the same structure, also it's the only race which can stop the construction to continue it later, without destroying the structure.
Instead of returning a group, the START event fire each time a worker start to build, and there is a boolean to know if it's the begin of the build or not.
Same for FINISH event.
I like it like that but would you prefer that the event fire only one time and return a group of worker instead?
I've also added a event for human workers "STOP" when a worker stop the construction to do something else.
For undead workers and structure built with an ability :
Sure it must return the worker on a START event, but i don't really know if it should also return the worker on a FINISH event, since the worker is in fact already doing something else.
Why ?
Because we don't have a native GetBuilder(), and the way how a structure is build only depends the race of the builder, so therefore if i want GetBuilder() working for all races i need custom events, and a custom GetStructure() also.
I don't need help in how to do it, it's almost done, i just need to add undead and structures built with an ability.
But i need your opinions for these things :
For all races :
The native CANCEL event doesn't fire when the structure is killed/removed during the construction, should it be the case for custom events ?
For human workers :
Several workers can build the same structure, also it's the only race which can stop the construction to continue it later, without destroying the structure.
Instead of returning a group, the START event fire each time a worker start to build, and there is a boolean to know if it's the begin of the build or not.
Same for FINISH event.
I like it like that but would you prefer that the event fire only one time and return a group of worker instead?
I've also added a event for human workers "STOP" when a worker stop the construction to do something else.
For undead workers and structure built with an ability :
Sure it must return the worker on a START event, but i don't really know if it should also return the worker on a FINISH event, since the worker is in fact already doing something else.