Cast point and cast backswing reals through trigger?

Status
Not open for further replies.
Level 3
Joined
Apr 7, 2020
Messages
32
Is there any reason this isn't working? I've done similar GUI triggers that changed attack range and it was successful.

I'd like to be able to modify a unit's Castpoint and Cast backswing through obtaining an item.

The trigger itself works, it's the two actions regarding the castpoint and cast backswing that do not work.

  • broom handle blue
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Ring of Protection +5
      • (Owner of (Hero manipulating item)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Hero manipulating item) is A melee attacker) Equal to True
        • Then - Actions
          • Unit - Set Unit: (Hero manipulating item)'s Real Field: Animation - Cast Backswing ('ucbs') to Value: ((Unit: (Hero manipulating item)'s Real Field: Animation - Cast Backswing ('ucbs')) - 1.00)
          • Unit - Set Unit: (Hero manipulating item)'s Real Field: Animation - Cast Point ('ucpt') to Value: ((Unit: (Hero manipulating item)'s Real Field: Animation - Cast Point ('ucpt')) - 1.00)
        • Else - Actions
 
Last edited:
Hmm. I messed around with this.

Not sure what the problem is, but if you use Thunderclap with the delay changed it works just fine.

However, it does not work for Storm Bolt. Hopefully someone knows the engine constraints or trick required to get target spells to work.
Thank you! This is quite helpful and something I should've considered before.

I've noticed some of the Set Unit Real Field actions are really finicky and you need to do a few extra steps/tricks to get it to work.
 
Hmm. I messed around with this.

Not sure what the problem is, but if you use Thunderclap with the delay changed it works just fine.

However, it does not work for Storm Bolt. Hopefully someone knows the engine constraints or trick required to get target spells to work.

On the first test everything worked as one would expect (both spells worked fine with a 3s cast point), then I tested again and Thunder Clap wasn't obeying the new cast point... probably just a buggy function :P
 
Status
Not open for further replies.
Back
Top