- Joined
- May 21, 2014
- Messages
- 580
Greetings once again Hive!
I am stumped to yet another problem that I recently found out when testing.
I have a building called the Charger that repairs nearby buildings one by one when damaged. So, I have used Peasant's Repair as a base skill and edited its Data field values. I also made the Default Active Ability field to be set on the same repair skill that I edited. When the Charger is successfully built, I can see that the Auto-cast is active, which is working well. But then, Charger has an upgrade called the Upgraded Charger. When I upgrade Charger into Upgraded Charger, even when the Default Active Ability is set to the edited Repair skill in Upgraded Charger, the auto-cast is not active.
As a response, I created a Trigger:
Are there any other ways just so I can activate auto-cast automatically without manually clicking on it?
Thanks Hive.
I am stumped to yet another problem that I recently found out when testing.
I have a building called the Charger that repairs nearby buildings one by one when damaged. So, I have used Peasant's Repair as a base skill and edited its Data field values. I also made the Default Active Ability field to be set on the same repair skill that I edited. When the Charger is successfully built, I can see that the Auto-cast is active, which is working well. But then, Charger has an upgrade called the Upgraded Charger. When I upgrade Charger into Upgraded Charger, even when the Default Active Ability is set to the edited Repair skill in Upgraded Charger, the auto-cast is not active.
As a response, I created a Trigger:
-
Activate Autocast
-
Events
- Unit - A unit Finishes an upgrade
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Power Plant
- (Unit-type of (Triggering unit)) Equal to Upgraded Charger
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Unit - Order (Triggering unit) to Human Peasant - Activate Repair
-
Events
Are there any other ways just so I can activate auto-cast automatically without manually clicking on it?
Thanks Hive.