I have this trigger:
Player 1:
Current Player Brings Exactly 0 Any Unit to P1 Inventory 1.
Set Deaths for Current Player to 1 for Yggdrasil.
Preserve Trigger.
Problem is, even when there is a mineral chunk owned by Player 1 at P1 Inventory 1, this trigger still runs. Why?
None.
I think powerups are special i was using a trigger earlier to detect any unit and it wouldn't acknowledge a psi emitter
None.
Resources CAN be detected, another trigger in my map detects them just fine.
Post has been edited 1 time(s), last time on Apr 26 2009, 3:04 am by ForTheSwarm.
None.
Well then you can assume its just that trigger and that mineral chunk, just see whats different, player of trigg, owner of chunk, etc.
None.
The only difference is that the other mineral chunk is owned by P12.
If it needs to be owned by P12 to be detected, my inventory system is screwed...
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
What can go wrong:
- Wrong player. Who is Current Player?
- probably not it, but I prefer at most 0 instead of exactly 0
- also not sure, but maybe mineral junk is not [any unit]? Try the specific unit.
- Location has moved or only air checked.
- The trigger does indeed not run, but you think so because of another trigger interfering. Test that by adding a unique action, like display text.
What can go wrong:- Wrong player. Who is Current Player?
Player 1.
- probably not it, but I prefer at most 0 instead of exactly 0
I can try that. EDIT: Didn't work.
- also not sure, but maybe mineral junk is not [any unit]? Try the specific unit.
Tried that, didn't work.
- Location has moved or only air checked.
It hasn't/isn't.
- The trigger does indeed not run, but you think so because of another trigger interfering. Test that by adding a unique action, like display text.
I've already added a display text trigger, and I have confirmed that the trigger runs.
Post has been edited 1 time(s), last time on Apr 26 2009, 12:33 pm by ForTheSwarm.
None.
- probably not it, but I prefer at most 0 instead of exactly 0
The only difference that makes is exactly 0 detects units in bunkers, at most 0 does not.
Is it only the mineral chunk causing problems, or are other units/powerups also giving the same issue?
None.
Is it only the mineral chunk causing problems, or are other units/powerups also giving the same issue?
Other resource chunks (like Gas Orbs) are giving me the same problem.
None.
Well, they are extended units, have you tried specifically naming them? Chances are they can't be detected.
None.
Well, they are extended units, have you tried specifically naming them? Chances are they can't be detected.
I have another trigger that detects them just fine.
The trigger that works:
Neutral brings at least 1 Health Potion (Mineral Chunk) to P1 Hero.
Move 1 Health Potion at P1 Hero to Storage Area.
Give 1 Health Potion at P1 Hero to Player 1.
Display for current player: <03>You pick up the health potion.
Preserve Trigger.
None.
Yeah, that's what I meant by specifically naming them, it looks like you can't use general functions like "All Units" on them, you have to name them specifically.
None.
Yeah, that's what I meant by specifically naming them, it looks like you can't use general functions like "All Units" on them, you have to name them specifically.
It works!
But I'm screwed. That's like 8x more conditions than I need.
Aha! I can cycle a location through each resource chunk and create a burrowed unit under them and detect the burrowed unit.
Please don't tell me I can't center locations on mineral chunks...
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
What can go wrong:- Wrong player. Who is Current Player?
Player 1.
I meant is current player (P1) really the player owning the mineral junk? If yes, how did you confirm it?
I like to approach such mystical bugs with "roundhouse triggers" that try to narrow the source of the problem down.
Like that:
All Players
C: All Players brings at least 1 mineral junk to anywhere
A: Display text
If it fires, narrow it down:
All Players
C: P1 brings at least 1 mineral junk to anywhere
A: Display text
etc. Until your very generic trigger matches the one not firing. You'll get to the problem along the way.
What can go wrong:- Wrong player. Who is Current Player?
Player 1.
I meant is current player (P1) really the player owning the mineral junk? If yes, how did you confirm it?
I like to approach such mystical bugs with "roundhouse triggers" that try to narrow the source of the problem down.
Like that:
All Players
C: All Players brings at least 1 mineral junk to anywhere
A: Display text
If it fires, narrow it down:
All Players
C: P1 brings at least 1 mineral junk to anywhere
A: Display text
etc. Until your very generic trigger matches the one not firing. You'll get to the problem along the way.
I know it's owned by player 1 because I was player 1 and I saw the green circle around the mineral chunk when selected. It was also bright green on the minimap.
None.
You can center locations on mineral chunks; I do it in my map. Center location works on almost anything, including half-built buildings. Bring just doesn't work on a lot of stuff, or in the case of mineral chunks, it is correct that it is not included in Bring any unit even though it is included in remove all any unit. Starcraft is so intuitive O.o
None.