Lightning shield help please :)

xlukee

New Member
Reaction score
1
hi can any1 help me with a simple spell im trying to make. im trying to make a spell just like lightning shield except that when u click the spell it automatically goes straight on the caster (no target selecting) and i want the spell to only hit the enemies and not friendly units. thnx in advance :)

ps: really nub at triggering but i understand the basics.
 

Bogrim

y hello thar
Reaction score
154
Create a dummy spell, a spell that does nothing and has no target requirement. (Berserk with 0.01 seconds duration, for instance.)

Create a dummy unit, a unit that has the locust ability and no model file, shadow or attack.

Create a Lightning Shield ability and check "Enemy" in the target requirements.

In a trigger, detect the event of your dummy ability being cast. Create a dummy unit for the caster and add the lightning shield ability to the dummy unit. Then issue an order for the last created unit to cast the lightning shield on the casting unit, and then remove the dummy.
 

xlukee

New Member
Reaction score
1
ok thanks im working on it now, and i have one question:

when u say: check "enemy" in the target requirments, do u mean: stats - targets allowed?
 

Bogrim

y hello thar
Reaction score
154
Yes. If a spell has neither "enemy" or "friend" in the target allowances, it can target both.
 

xlukee

New Member
Reaction score
1
k thanks, also with the tigger how to i make the dummy cast the spell, i dont see anything like issue order for ability or anything :S and issue order targeting a unit doesnt let me pick my ability.
 

Endless_Trev

New Member
Reaction score
5
Ok you gotta choose the spell its based off. So since its lightning shield, look for the base spell in issue order - target unit (or whatever it is) i think its probably orc shaman or something that casts it. Since they have the same base spell order ID it should work.
 

perkeyone

something clever
Reaction score
71
post your triggers for this spell
right click on them and copy as text
paste it between [noparse]
Trigger:
[/noparse] tags
 

xlukee

New Member
Reaction score
1
Trigger:
  • AS
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Arcane Shield
    • Actions
      • Unit - Create 1 dummy for Neutral Hostile at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Add Lightning Shield to (Last created unit)
      • Unit - Order (Last created unit) to Orc Shaman - Lightning Shield (Triggering unit)
      • Unit - Remove (Last created unit) from the game
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
It is not allowed to target only enemies on Lightning shield, because if you set the target of it to enemies only, casting the dummy lightning shield will not be cast on the caster. And the cast point of your dummy has a value.

Here's the spell. There is no way to damage only enemy on lightning shield if you will target your allies.
 

Attachments

  • LightningShield.w3x
    48.2 KB · Views: 152
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top