[Trigger] My trigger doesn't work and I don't know what's wrong..

Status
Not open for further replies.
Level 5
Joined
Nov 21, 2014
Messages
151
I have this sacrificial pact ability and everything was working fine, until I found out that you could sacrifice enemy units. (lol). So I wanted to change that. But I can still do it here, but I don't know why, can someone help me out?
player = player variable
sacpactunit = unit variable
warlockpact = unit variable
replenish = real variable (nothing wrong with this)
 

Attachments

  • trigger.PNG
    trigger.PNG
    20.1 KB · Views: 84
I don't remember sacrificial pact can be used against enemy units or no-undead unless you change it in Object Editor stats.

What do you mean by that?

That it still sacrfices an enemy unit..
The owner of the unit that casts sacrifical pact will be "Player" and the owner of the sacrificial pacted unit must be player aswell because of this trigger but it doesn't seem to work.
 
Okay I figured it out, apparently it is the custom script at "else". But then another problem arises, how do I prevent this from leaking now then?
 
I'm dumb.... I misunderstood my previous trigger, and it works now. If anyone is interested look at the attachments.:ogre_rage:


EDIT: improved the trigger, removing useless stuff.
 

Attachments

  • trigger.PNG
    trigger.PNG
    15.3 KB · Views: 83
Status
Not open for further replies.
Back
Top