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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top