• 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.

My Command Spell Problems O_o

Status
Not open for further replies.
Level 4
Joined
Oct 24, 2008
Messages
64
I have 3 spells i need to make and that causes 3 probelms i dont know a trigger that could do them though they seem quite simple and i almost did 1.
Here are the 3 spells and i hope i could have 3 spells triggers in reply :)
1: Chain of Command
Based on Chain lightning when used it turns all units hit by the chain lightning spell onto the caster of the spells side.
2: Command Area
Based of Blizzard all units in the area will change to the casters side. i think i need varibles for this one but i couldnt get it to work.
3: Eye of Command
Based of Sentry Ward all units within range of the ward will change to the casters side i thought this one would be really easy but i could of only it to work for a precific unit and not a ward that has been cast

Any ideas O_O
 
Level 5
Joined
Nov 12, 2007
Messages
134
Chain of Command:
Could you explain what's the problem for this spell?

Command Area:
No, you don't need to use variables

  • Command Area
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Command Area
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Target point of ability being cast)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
            • Then - Actions
              • Unit - Change ownership of (Picked unit) to (Owner of (Triggering unit)) and Change color
            • Else - Actions
Eye of Command
You mean the event Unit - Unit Within Range? You can only use this for pre-placed units, but you can add this event for other units by trigger

  • Eye of Command
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Eye of Command
    • Actions
      • Unit - Create 1 Eye of Command for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
      • Trigger - Add to Eye of Command Effect <gen> the event (Unit - A unit comes within 300.00 of (Last created unit))
  • Eye of Command Effect
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Eye of Command)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering unit) belongs to an enemy of (Picked player)) Equal to True
            • Then - Actions
              • Unit - Change ownership of (Triggering unit) to (Owner of (Picked unit)) and Change color
            • Else - Actions
 
Level 4
Joined
Oct 24, 2008
Messages
64
:D

ty those will help alot
and for Chain of Command the probelm was that when i cast the spell it hits the first unit and bounces off to the others
but only the first one gets converted
 
Level 5
Joined
Nov 12, 2007
Messages
134
ty those will help alot
and for Chain of Command the probelm was that when i cast the spell it hits the first unit and bounces off to the others
but only the first one gets converted

For your Chain of Command spell, I'm not really sure. You would have to base your spell off a spell with no effect like Channel and trigger the conversion. Although I'm not sure how you could make the missiles...
 
Level 3
Joined
Sep 25, 2008
Messages
39
If you mean how to get the visual effect you can use this:

  • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Trigger unit)) to target (Position of (Targeedt unit))
 
Status
Not open for further replies.
Top