just wanna be sure this is not possible before i do it the hard way (making custom dialogs to build stuff from buildings and coding all the building progress with triggers)
workaround turned out to be not as hard as i expected - for anyone interested in how i did it:
- turned up build time for all units really high so they never finish
- made a trigger that triggers when the training process is started in a given building. sets the buildings energy to 100 and gives it a negative energy recharge rate. the recharge rate is set by a custom function that sets recharge rate according to the unit being built, so units have different build times. the trigger writes the unit type being built in this factory to a global variable
- made a 2nd trigger that triggers when the factories energy changes, condition = energy is zero. creates the unit that was being built and starts the building process anew
the energy bar can be seen by anyone, and now players can capture buildings that are about to finish building and get the unit themselves :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hi
is there a way to have the building queue / progress not deleted when you change the ownership of a building?
also, is there a way for other players to see the queue for buildings that dont belong to them?
any help would be greatly appreciated, this forum rules :)
bump
just wanna be sure this is not possible before i do it the hard way (making custom dialogs to build stuff from buildings and coding all the building progress with triggers)
workaround turned out to be not as hard as i expected - for anyone interested in how i did it:
- turned up build time for all units really high so they never finish - made a trigger that triggers when the training process is started in a given building. sets the buildings energy to 100 and gives it a negative energy recharge rate. the recharge rate is set by a custom function that sets recharge rate according to the unit being built, so units have different build times. the trigger writes the unit type being built in this factory to a global variable - made a 2nd trigger that triggers when the factories energy changes, condition = energy is zero. creates the unit that was being built and starts the building process anew
the energy bar can be seen by anyone, and now players can capture buildings that are about to finish building and get the unit themselves :)