Visibility modifier not working, trigger problem

Lncredible

New Member
Reaction score
1
Message to only one player

I think I am having an idiot moment but...

I want to send a "Game - Text Message (auto-timed)" to the player who owns a specific unit, and that player only. But I cant find for the life of me the right words to do it.

I can't use Player1,2,3,4,5,6,7,8 because any of them could own this unit, depending on who picked it.
 

ZelNaga

New Member
Reaction score
5
Set whom ever picks the unit to a player veriable and the send the text to that person?
 

warden13

New Member
Reaction score
32
Convert (Player) to (Player Group)
Convert (Owner of (Unit)) to (Player Group)
Show "Game - Text Message (auto-timed)" to "Convert (Owner of (Unit)) to (Player Group)"

It should work.
 

Lncredible

New Member
Reaction score
1
Triggers for skill to display heros with low mana (problem)

Hey guys,

Today I need a set of triggers to display to (owner of "maphacker"[variable already set]) every HERO that falls blow 15% mana. (This is intended to be much like that of Strygwr or whatever his name is from dota.)

Once the hero returns to beyond 15% mana they should no longer be visible to "maphacker".

I have run through a lot of options but they all come up short. Have you got any ideas that I might be able to use? :)

Cheers
 

Flow

New Member
Reaction score
4
I'm not 100% sure of what you're looking for, but can't you just grant Shared Vision of the unit to the owner of maphacker, and then remove it again when the requirement is no longer met?
 

Lncredible

New Member
Reaction score
1
reply

Yeh flow, i was going along those lines but i need more in depth trigger details to follow. im a bit noob :(

edit - Oh and that also buggered up because Summons became visible when they fell below 15%.. and i didnt want them involved. Heroes only. But there is no room for a "heroes only" condition in a "pick all units and do action" when considering mana too.
 

Flow

New Member
Reaction score
4
Oh. Right. I don't have access to the WE right now, so someone else will have to point to the exact location of those actions in the trigger editor. :)
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
There is a hero condition.

Boolean comparison > Unit Classification Check > Matching Unit is A Hero equal to True
 

Flow

New Member
Reaction score
4
I think he wants someone to specify how to find the action to grant the shared vision though.

EDIT: Oh sorry, didn't see his edit. >_<
 

Lncredible

New Member
Reaction score
1
OK so my aim with this trigger was to display a Hero owned by Player2 if his mana falls below 15%. The only person he would be revealed to would be the "Maphacker".

I put in the game message to check if everything worked up till that point, and it does. While the target hero's mana is below 15% it spams that message.

Yet I, the owner of Maphacker unit, cannot see the picked hero. Anyone see anything wrong?

Cheers guys.

Trigger:
  • BlueUnitManaLow
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • MaphackLevel Equal to 1
    • Actions
      • Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Percentage mana of (Picked unit)) Less than 15.00
            • Then - Actions
              • Game - Display to (All players) the text: works
              • Set LocationBlueRegion = (Region centered at (Position of (Picked unit)) with size (50.00, 50.00))
              • Visibility - Create an initially Enabled visibility modifier for (Owner of Maphacker) emitting Visibility across LocationBlueRegion
              • Set LocationBlue = (Last created visibility modifier)
            • Else - Actions
              • Visibility - Disable LocationBlue
 

OogaBooga

New Member
Reaction score
0
Ok in the part that says:

Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)

I think the "Matching unit" should be "owned unit" or something along those lines. The trigger is searching for the "matching unit" but nothing has been matched yet, so there's nothing to find. Not sure if that's what your problem is, but if you think about it logically, that search pattern doesn't really make sense.

Edit: Ok, this sort of violates my logic above, but you might try using:

Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
No it is matching unit. Don't wanna mess up your trigger even more.

You might want to try this though:
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Not equal to (Owner of (Maphacker)))) and ((Percentage mana of (Matching unit)) Less than or equal to 15.00)) and (Matching Unit is A Hero equal to True)) and do (Actions)
    • Loop - Actions


Edit, I just noticed, you use a 50x50 region to emit visibility

That's likely to fail, because 1 space is 64x64 which is the minimum, I believe. Try using something like 192x192, thats 3 space wide.
 

Lncredible

New Member
Reaction score
1
ok - have got this far

Trigger:
  • RedUnitManaLow
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Not equal to (Owner of Maphacker)) and (((Percentage mana of (Matching unit)) Less than or equal to 15.00) and (((Matching unit) is A Hero) Equal to True)))) and do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Owner of Maphacker) emitting Visibility across (Region centered at (Position of (Picked unit)) with size (192.00, 192.00))



I had previously used my old Actions but they ended up not working. How do I remove the visibility modifier if the unit's mana goes above 15%?

Keep in mind that if 5 heroes have below 15% there will be a lot of modifiers hanging about.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top