salem
New Member
- Reaction score
- 3
I used a trigger to order a building to research an upgrade (attack upgrade), Now the building has a certain ability that it could cast and it could also upgrade itself into a different building (just like the town-hall > keep upgrade).
Now while the building is researching something, it can not use its ability nor can it upgrade itself ; which is quite normal.
The problem is, AFTER the research is finished (the one that i ordered using triggers), the building still can't use its ability nor upgrade itself as if it is still researching something...
I tried ordering the building to stop using the normal stop button and i tried ordering it to stop using a trigger, i also tried manualy researching another upgrade... None of this worked.
The only thing that worked is replacing the unit after it finished the research (the one that is ordered using triggers.)
Now while the building is researching something, it can not use its ability nor can it upgrade itself ; which is quite normal.
The problem is, AFTER the research is finished (the one that i ordered using triggers), the building still can't use its ability nor upgrade itself as if it is still researching something...
Code:
Auto Upgrade
Events
Unit - A unit Finishes research
Conditions
((Triggering unit) is A town-hall-type unit) Equal to True
Auto_Upgrade[(Player number of (Owner of (Triggering unit)))] Equal to On
Actions
Unit - Order (Triggering unit) to research (Researched tech-type)
I tried ordering the building to stop using the normal stop button and i tried ordering it to stop using a trigger, i also tried manualy researching another upgrade... None of this worked.
The only thing that worked is replacing the unit after it finished the research (the one that is ordered using triggers.)