• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Having A Trigger Issue

Status
Not open for further replies.
Level 2
Joined
Feb 8, 2009
Messages
16
Spell Trigger Issue

I'm trying to make it so after seconds of casting Rejuvenation that it spawns a dummy unit at the location of the target of rejuvenation and have it cast Chain heal on the target. It works If I don't move. But if I move around the variable:
  • Set Natures_Bloom_Target = (Target point of ability being cast)
Doesn't move with the target. Is there a way to make it move with it?

Okay, I have these triggers:

  • Rejuv Bloom
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Nature's Bloom
    • Actions
      • Set Counter = 0.00
      • Set Natures_Bloom_Owner = (Triggering player)
      • Set Natures_Bloom_Caster = (Triggering unit)
      • Set Natures_Bloom_Target = (Target point of ability being cast)
      • Trigger - Turn on Rejuv Bloom Action <gen>

  • Rejuv Bloom Action
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set Counter = (Counter + 0.01)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer(Counter)) Greater than or equal to 5
        • Then - Actions
          • Unit - Create 1 Nature's Bloom Dummy for Natures_Bloom_Owner at Natures_Bloom_Target facing Default building facing degrees
          • Set Natures_Bloom_Dummy = (Last created unit)
          • Unit - Order Natures_Bloom_Dummy to Orc Shadow Hunter - Healing Wave Natures_Bloom_Caster
          • Unit - Add a 1.00 second Generic expiration timer to Natures_Bloom_Dummy
          • Custom script: call RemoveLocation(udg_Natures_Bloom_Target)
          • Trigger - Turn off (This trigger)
        • Else - Actions
I know this may not be MUI but at the moment, I'm just trying to get a feel for making triggered spells, I'm relatively new to triggering.

It would be great as well if someone could help me make it MUI as well.

Will +rep if problem is solved.

Note: This may or may not be an easy fix, like I said before I'm kinda new.


UPDATE: I found out why and I have it working now. All I need is someone to help me make it MUI.
 
Last edited:
Status
Not open for further replies.
Top