Summonings Problems: Familiars

Thanatos_820

Death is Not the End
Reaction score
91
Okay, I made a spell that summons a familiar called a Spirit Dragon. I gave it the Locust ability and I have this trigger (But I can't get some things right) so far:

Code:
Spirit Dragon
    Events
        Unit - A unit Spawns a summoned unit
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Summoned unit)) Equal to Spirit Dragon (Level 1)
                (Unit-type of (Summoned unit)) Equal to Spirit Dragon (Level 2)
                (Unit-type of (Summoned unit)) Equal to Spirit Dragon (Level 3)
    Actions
        Set SDF_Move = (Position of (Summoning unit))
        Unit - Order (Summoned unit) to Follow (Summoning unit)

Variables in Trigger:

SDF_Move (Spirit Dragon Familiar) is set to Position of Summoning Unit.

Now here's the problem:

I want my summoned unit (With the Locust bability, making it unselectable) to attack nearby enemy units, but in this trigger, it will only attack enemy units after the hero dies. I want to use my variable SDF_Move for one of the actions and I can't seem to find the correct trigger. What I mean is, what goes next or needs some correcting?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
Well, the "follow" order does just that, it makes some unit "follow" some other unit.

Some periodical trigger that orders it to attack-move to the position of its master has a better chance to work.
Optionally, if the distance between master and summon is "too far", only order it to move closer, then resume the attack-moving.
 

Thanatos_820

Death is Not the End
Reaction score
91
Hmmm...I can't seem to find a Distance trigger. I'm trying to make the spell work as one and not in seperate triggers, but this is getting difficult :banghead:.
 

Thanatos_820

Death is Not the End
Reaction score
91
Okay, I ran into more problems. I got the summoned unit to follow it's master after the distance has been over the limit or equal to the limit, but If I add a Wait command, it does nothing and stands there. Here's my trigger so far:

Code:
Spirit Dragon
    Events
        Unit - A unit Spawns a summoned unit
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Summoned unit)) Equal to Spirit Dragon (Level 1)
                (Unit-type of (Summoned unit)) Equal to Spirit Dragon (Level 2)
                (Unit-type of (Summoned unit)) Equal to Spirit Dragon (Level 3)
    Actions
        Set SDF_Move = (Position of (Summoning unit))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Distance between (Position of (Summoned unit)) and (Position of (Summoning unit))) Greater than or equal to 200.00
            Then - Actions
                Unit - Order (Summoned unit) to Follow (Summoning unit)
            Else - Actions
                Unit - Order (Summoned unit) to Attack-Move To SDF_Move

Now, in this trigger, I want the Dragon to attack nearby enemy units but it still has the problem as the one I had. It's like I did nothing with it.
 

U are a noob

Mega Super Ultra Cool Member
Reaction score
152
you know when a unit follows it is about 200 away also "Unit - A unit Spawns a summoned unit" Only happens once so when you first do it it will only use "Unit - Order (Summoned unit) to Follow (Summoning unit)"
 

Thanatos_820

Death is Not the End
Reaction score
91
I'm still stuck :banghead:. Does the action require a loop trigger to continually do that?

I also need some more triggers to finish this up, I can't seem to make my Dragon attack nearby enemies (No one has anwered that).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top