Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Im trying to make a tower auto build but i dont know how. I want when i click to build a tower to make it build without having the Summoner (the one who builds it) stand beside him. Can someone help me please
Easy. Detect when the build order is issued (yes it issues an order before it starts to build the building) and then simply cancle the build order. Next create a dummy summoner (or move a recycled one to do the job) and get him to build the building by issuing the same order at the same position. Alternativly you deduct the resources and just spawn the building (again via triggers).
Its that simple. . .
Note that you may need to mess around with orders and unit parameters until you get a result which feels pollished enough to use.
a spellbook full of "build tiny farm/townhall/whatever" spells might work too
(I tried to get build-order today and it seems like I would need to enter EVERY unit id to make it work oO)
Easy. Detect when the build order is issued (yes it issues an order before it starts to build the building) and then simply cancle the build order. Next create a dummy summoner (or move a recycled one to do the job) and get him to build the building by issuing the same order at the same position. Alternativly you deduct the resources and just spawn the building (again via triggers).
Its that simple. . .
Note that you may need to mess around with orders and unit parameters until you get a result which feels pollished enough to use.
or u can make it by zones, make a zone where u want the building to be made, then make a trigger, that when u make an upgrade or whatever, a unit (building) spawns on the area
or u can make it by zones, make a zone where u want the building to be made, then make a trigger, that when u make an upgrade or whatever, a unit (building) spawns on the area
i didn't get what you meant by the without the summoner/builder stand beside him. do you mean like, you click a button, then that building is built? (like what Aslit said about building in zones). i'm not sure how you really want a building to just sprout out of a map, as what Aslit said seemed to be too broad (eh like if you finished an upgrade, where exactly do you wish that building to.. uhh.. sprout ). you can create an ability (preferably Channel, or any point targetted spell), make it's cast range 9999. then use something like this:
Build
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to (Your Created Build Tower Ability)
Then - Actions
Set LocBuild = (Target point of ability being cast)
Unit - Create 1 (Your Supposed Tower) for (Owner of (Triggering unit)) at LocBuild facing Default building facing degrees
Else - Actions
Custom script: call RemoveLocation(udg_LocBuild)
i'm expecting you to have many towers that's why i did an if/else/then instead of just using the Condition field. create more if/then/else for each kind of tower you have. of course that trigger will build that tower at once, without those fancy construction animation. if you want that, add Dr Super Good's idea of creating a dummy builder instead at the point where your ability is cast, and make that building Undead (as NFWar's idea) so you can remove that builder as soon as that building started its construction animation.
i dont copy paste cuz my version is not in english, symbols are not suposed to be question marks
Events
unit ends upgrade
Conditions
upgrade equals to (select ur upgrade).
Actions
create (unit (ur tower)) at center of region facing angle
before u need to create the reagion with the region palet and then u selec them clicking on the blue text
and to avoid more advanced stuff u can copy this trigger and change the upgrades and zones, dont forget to check that u changed the stuff for each trigger
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.