Fänd ich auch besser, wenn man wenigsens etwa 5-mal hauen muss.
Man könnte es ja mit % machen... 1 Hammerschlag 5 %
Aber 5% ist 20 hammerschlag?
Oder 20% mit 5 hammerschlag? Du kannst das mit der erste script machen. Aber baustelle mit 200 teile= 40teile per hammer hit= 20seconds per hit. 20 seconds of immobility?
I edited the second script, it now has sound effects. If you want sound effects, add 'play "build.wav";' inside the on:timer and on:hit sections. Before or after "process" is fine.
I've been trying to trigger the "right-click-build"-event directly. event "attack2","global" does not seem to work, though both the hammer and buildsite do get the event. It just does not trigger the building part. And I've not found "mouse2_down"-events either. I'm trying to look at the sourcecode to find out if thats possible.
As for the build times, using my script the building takes as long as it would take by clicking, so it's not very realistic. Different build times might be possible if I knew what building the site was set up for.