Help with a spell

pwnagenub2

New Member
Reaction score
3
Hello, these seems to be very easy to make but i can't see to get it to work.

I'm making a spell where a unit casts an ability on a friendly target, which makes a unit for the player that got hit by the ability.
For example, if player 3 casts the ability on player 1's character, player 1 will get a unit at the position of his unit that was the target of the ability.

Here is what I have so far :

Code:
Spirit Vision
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Spirit Vision 
        (Picked player) Equal to Player 1 (Red)
    Actions
        Unit - Create 1 Artificier Spirit for Player 1 (Red) at (Position of (Casting unit)) facing Default building facing degrees

i'm not sure what else would work. here i'm trying to make it so a player besides player 1 casts an ability on player 1's character which makes the unit for player 1 to control.

thanks
 

BRUTAL

I'm working
Reaction score
118
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Spirit Vision
    • Actions
      • Set loc = (Position of (Triggering unit))
      • Unit - Create 1 Artificier Spirit for (Owner of (Target unit of ability being cast)) at loc facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_loc)

That is more like what you need; I hope I understood what you said correctly.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top