Unsure Why This Trigger Isn't Working

Komaqtion

You can change this now in User CP.
Reaction score
469
You know that this doesn't work for Player (Red), right ? :S XD

And you're sure that MainUnit is set to something ? :eek:
 

Azrooh

New Member
Reaction score
5
It's set from 3-12 because I don't want it working for red, blue, passive, victim, hostile, or extra. And yes it's set to something. Unless MainUnit dies. The trigger is supposed to make sure it's always set to something or the player is defeated.
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Aren't you complicating things with this trigger? o.0

Unit Dies

TriggeringUnit is Hero

local integer i = GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
Then..
Do stuff relating to that Player-integer'i'

I duno, I don't use GUI =x
 

Azrooh

New Member
Reaction score
5
With GUI you have to overcomplicate things, it isn't straightforward like JASS.
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Uh, wha- ?
I'm pretty sure there's a convert Player to index or something of that sort in GUI.

Use that.
It'll make things a bit easier to think through.

Also, tell us, what is it about the trigger that does not work?
Are you testing the map as Player 1 or 2?
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Also, does 'Dying Unit' work?

Shouldn't you use 'Get Triggering Unit' or GetTriggerUnit ?
 

Azrooh

New Member
Reaction score
5
Dying Unit works. It works in all the other triggers. I am not testing as players 1 or 2, because nothing else works for them either until I get to them. :p
 
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