How to make a spell Self-cast Self-target only

E

Empathy

Guest
For example:
There is bloodlust, which requires one to select a target for the spell, and then there is frenzy, which, when clicked autotargets the caster and skips the whole process of selecting a target. How do you make all spells do this? I can't find a field that changes this. I have a self heal I want to implement, but i don't want to have to target the caster in order for it to work. I want to press the button, and have the heal just cast on the caster.

How would I go about doing this? Thanks.
 
E

Empathy

Guest
Only the casting unit may be targetted BUT, i don't want to have to use the mouse to target myself.

I'll give you an example.
You know if you use holy light, you have to select a target for it.
Whereas if you use berserk (headhunter skill), it automatically targets the headhunter.

I want a self heal, so that when i press the button (like berserk) it autotargets the casting unit.
 

Slapshot136

Divide et impera
Reaction score
471
i think there's a spell called frenzy that does that, the troll headhunters and the like quill pig have that..
 
E

Empathy

Guest
Yes i Know that.
But that's not what i want.
As stated before i want a ***Self Heal***
Not frenzy.

How do i make a spell autotarget the casting unit?
 

Slapshot136

Divide et impera
Reaction score
471
base it off of that and then have a trigger that does what you want, like this

Code:
event - unit starts the effect of an ability
conditions - ability being cast is equal to frenzy
actions - set hp of triggering unit to hp of triggering unit + X

and set the duration to 0 for the frenzy
 
E

Empathy

Guest
I was hoping to not have to use a trigger for this. Is there no field in the object editor that states "self autocast, autotarget" or something to that extent?
 

TavinG

New Member
Reaction score
4
Is there no field in the object editor that states "self autocast, autotarget" or something to that extent?
Nope. You'll have to trigger your spell.
 

Mike889

New Member
Reaction score
15
Well, triggering this spell will be very easy anyway ^^
Just use what slap said or create a Dummy unit that casts Holy Light on the triggering unit.
 

foodflare

You can change this now in User CP.
Reaction score
32
just base the spell off of heal and change targets to ground, self
if the unit is targeted as ground, all you need is self and whatever unit is targeted as for targets

c this is a demo with priests who can only heal themselves

(btw the item drop table is just for kicks)
you can test if they heal only themselves by ordering priests to attack other priests if u dont believe
oops srry this only makes them autoheal if they get lowhp not a press the button type thing. if it were press the button u would have to target
 

Attachments

  • HealYourselfautocast.w3x
    16.8 KB · Views: 244
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top