Another guys from russian community dound another bug, he posted a video about it: https://yadi.sk/i/fgX3fNuj3BtHM4
At the end of a video normal (not Town hall) units just dissapear when exit from barracks
It is normal. It worked well. The player wanted to train milities, but he did not have enough AXE in the barrack (AX min 101 , if less then milities be killed). He had only 100axes which is equal 0. Script worked well in SP mode also(? wow?) because he got the warrior which means it was ok (cost 1IronArmor+2swrds+1recruits)
100wares given to barrack because in multiplayer we can save lots of time to train the units in big groups with the mouse right cklick. It is also only a little trick as dynamic scripts manytimes using tricks. :S
Originaly 100 was 1 because we need to enable the training button to be able to create TH units which would not need leatherjackets etc. We could not train REbel or rougge if there would not be minimum 1 leatherjacket in the barrack.
The silent kill is necesarry because 100 is not a bonus added weapons it is only comfort things for the players.
I would recommend to translate the pdf file to russian language to make the script more understable for the players.
I dont know how could it be programmed on much better way. MAybe you, Andreus or some famous programmer could do it on the right way. It is really was only an example to present an idea and way to implement the TH units.
May be it will be easier if we add some new functions in dynamic scripting, smth like 'OnTrainUnitCommandIssued', which will be invoked not when unit get outside of building, but when it was only in plans. Will it solve this issue ?
I dont really know how should it work. Maybe Krom or Lewin could help in this case.
Seems programmers can reacting only on the trained units events, so if the PLAN would mean the click on the selected trained units maybe could help and could solve this case in this dynamic script.
Anyway the players welcomed this scipt but still they dislike because how its looks out and the tricks and the disabled trades because the added 100wares...
They rather would train these units on normal way like the regular units are trainable.