• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Unit Creation Problem

Status
Not open for further replies.
Level 6
Joined
Dec 19, 2005
Messages
61
Forgot to state in title: GUI

  • Raise Dead Lvl Ultimate
    • Events
      • Unit - Unit begins channeling an ability
    • Conditions
      • (Ability being cast) equal to Raise Dead (Ultimate)
    • Actions
      • Set Animator = (CastingUnit)
      • Set AnimationPoint = (Target point of ability being cast)
      • Unit - Create 16 Zombie (Tier 3) for (Owner of Animator) at (AnimationPoint offset by 0.00, 0.00)) facing (Random Angle) degrees
      • Unit - Create 14 Skeleton Warrior (Tier 3) for (Owner of Animator) at (AnimationPoint offset by 0.00, 0.00)) facing (Random Angle) degrees
      • Unit - Create 14 Skeleton Archer (Tier 3) for (Owner of Animator) at (AnimationPoint offset by 0.00, 0.00)) facing (Random Angle) degrees
My Problem

When the spell is cast the trigger is over creating units, in my last test I got 24 Zombies, 16 Skeleton Warriors and about 15 Skeleton Archers.
What's going on?
I have 9 other triggers based on this ability but each uses a different ability with a different editor suffix at the end to designate "level" difference.

Would much appreciate a responce.

Couldn't be because the ability's are copied then pasted then changed thus creating a discrepancy between ability data names?

Cheers,
Chris.
 
Level 4
Joined
Jul 24, 2008
Messages
108
you could try something like this instead

  • Unit - Create 1 Footman for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Just change the units. Its the same thing without variables, also don't use the offset and see if it helps
 
Level 4
Joined
Jul 24, 2008
Messages
108
I'm not having a problem with where it's creating them, it's with how many it's creating.

It's creating far larger amounts of units than it should be and it's completely random.

I made a spell similar for one of my maps where casting a spell would summon units. How i did it was using the event i used above in conjunction with

  • For each (Integer A) from 1 to 10, do (Actions)
    • Loop - Actions
      • Unit - Create 1 UNITNAME for owner of casting unit at position of spell target) facing Default building facing degrees
      • Wait 0.10 seconds
Took a second to cast them all, but it worked, at least for me
 
Status
Not open for further replies.
Top