HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

If Statements Incorrect

09-06-2007, 10:56 PM#1
Hessgasoline
I have a small problem here.

The objective of this trigger is to have anytime a computer unit, (In this case, all units are heros) kills another unit, all of the user controlled units gain 2 exp times the level of the unit that died.

I've tried reworking this trigger multiple times, and it's probably something stupid as me not fixing my Matching Unit / Picked Units, but I'm not really sure. If anyone could help me out it would be appreciated.

Here are the triggers.

(Note: The First Part of the Trigger works correctly, I just put it in there. The Second Large If Statement appears to not work as intended.)

09-06-2007, 11:53 PM#2
MaD[Lion]
sadly i dont see anything wrong :P
09-07-2007, 01:06 AM#3
TaintedReality
What happens when the trigger fires? I also can't see anything wrong with it. I'd recommend putting in some debug messages to see what's going on.
09-07-2007, 01:30 AM#4
botanic
I agree with them there is nothing wrong my best guess would be that the dying unit is not a hero...
09-07-2007, 02:09 AM#5
Hessgasoline
Well, I figured out the problem. It seems to be that I had forgot to set the player properties of Brown to computer, and it was detecting it as something else. Not really sure what it was thinking that player 12 was other then Computer, but changing the first IF Statement to (Not Equal to) (User) made the trigger work fine.

Thanks for the help everyone.
09-07-2007, 02:46 AM#6
Vexorian
Please use the [trigger] tag next time.