Task is to make a resource that would be consumed at the time of the controlled unit. This resource should be displayed as a progress bar. When the controlled unit is active (using an abilities: move, attack, any other) this resource is consumed at a rate of 1 per second of real time. When the controlled unit is idle (not moving, not attacking) this resource is restored at a rate of 0.3 per second. When resource ends unit can't use any abilities including the move.
Tried to solve this through the data, but it may be easier to create a trigger. I realize that maybe it is not easy, and I will be very grateful for any help and participation! Maybe throw thoughts for reflection, I finally stuck))
Do not miss the past, I thought of an awesome mechanics, but lack the skills to work with the editor.
Have a buff that uses a 1 sec periodic effect of a Switch type. The switch uses Unit Order Queue validators to determine which Modify Player effect to remove/add the resource. As for the progress bar that is a Leaderboard which requires triggers.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Thx, i'll try this with buff. And I'm thinking, is better able to tinker with the timers? Create a timer as a resource and create additional conditions for use abilities. Is this possible?
Try to explain.
The logic is:
1. Create timer window that displayed as progress bar.
2. Set duration 10 second.
3. Create cycling of the timer, from the moment when it is completely expired. Including a small delay before the rollback to reverse up to 10 seconds.
4. Set the timer recovery condition at a rate 0.3 per second.
5. Create the trigger that consumes 1 sec when selected unit is active.
6. Specify the condition under which a unit can not use abilities when the timer expires.
Left2Die contains mass triggers about timers.. try to understand. Have any idea how to do it?
I made a map. Now the timer starts when the unit starts to move or attack, and off when the unit becomes idle. But now the timer is activated with a small pause. I also made a short delay before the restoration of timer.
Now the hard part. How to make the units could not use abilities when the timer to expire?
Please, help!!! I'm so close to my dream!! ))) Here is the map.
P.S. There is another problem. Sometimes the timer operates independently, regardless of the behavior of units.
Hello everybody!!
Task is to make a resource that would be consumed at the time of the controlled unit. This resource should be displayed as a progress bar. When the controlled unit is active (using an abilities: move, attack, any other) this resource is consumed at a rate of 1 per second of real time. When the controlled unit is idle (not moving, not attacking) this resource is restored at a rate of 0.3 per second. When resource ends unit can't use any abilities including the move.
Tried to solve this through the data, but it may be easier to create a trigger. I realize that maybe it is not easy, and I will be very grateful for any help and participation! Maybe throw thoughts for reflection, I finally stuck))
Do not miss the past, I thought of an awesome mechanics, but lack the skills to work with the editor.
Have a buff that uses a 1 sec periodic effect of a Switch type. The switch uses Unit Order Queue validators to determine which Modify Player effect to remove/add the resource. As for the progress bar that is a Leaderboard which requires triggers.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Thx, i'll try this with buff. And I'm thinking, is better able to tinker with the timers? Create a timer as a resource and create additional conditions for use abilities. Is this possible?
1. Yes using Upgrades
2. Need more info to be able to answer that.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Try to explain. The logic is: 1. Create timer window that displayed as progress bar. 2. Set duration 10 second. 3. Create cycling of the timer, from the moment when it is completely expired. Including a small delay before the rollback to reverse up to 10 seconds. 4. Set the timer recovery condition at a rate 0.3 per second. 5. Create the trigger that consumes 1 sec when selected unit is active. 6. Specify the condition under which a unit can not use abilities when the timer expires.
Left2Die contains mass triggers about timers.. try to understand. Have any idea how to do it?
Meant what conditions for abilities.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I meant that a necessary condition for ability is always enough time.
Hi, again.
I made a map. Now the timer starts when the unit starts to move or attack, and off when the unit becomes idle. But now the timer is activated with a small pause. I also made a short delay before the restoration of timer.
Now the hard part. How to make the units could not use abilities when the timer to expire?
Please, help!!! I'm so close to my dream!! ))) Here is the map.
P.S. There is another problem. Sometimes the timer operates independently, regardless of the behavior of units.