Invulnerable

Jonny-Reaper

Active Member
Reaction score
0
I have 3 watch towers defending 2 buildings which are invulnerable and when all 3 towers are destroyed the 2 buildings become vulnerable. but the problem is when any 1 of the towers is destroyed the buildings become vulnerable, i want all 3 to be destroyed before the buildings become vulnerable, i'll post my trigger

Trigger 1
Invulnerable
Events
Time - Elapsed game time is 0.05 seconds
Conditions
Actions
Unit - Make Barracks 0007 <gen> Invulnerable
Unit - Make Fortress 0078 <gen> Invulnerable

Trigger 2
Vulnerable
Events
Unit - Watch Tower 0091 <gen> Dies
Unit - Watch Tower 0092 <gen> Dies
Unit - Watch Tower 0093 <gen> Dies
Conditions
Actions
Unit - Make Barracks 0007 <gen> Vulnerable
Unit - Make Fortress 0078 <gen> Vulnerable
 

canons200

New Member
Reaction score
50
you can use bealoon or integer to track, if watch tower 1 down, set integer to integer +1, and when integer = 3, set your building vulnerable
 

chobibo

Level 1 Crypt Lord
Reaction score
48
Trigger:
  • Test
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Tower[1] is dead) Equal to True
      • (Tower[2] is dead) Equal to True
      • (Tower[3] is dead) Equal to True
    • Actions
      • Unit - Make Fortress Vulnerable
      • Unit - Make Barracks Vulnerable
 

viktorpapa

New Member
Reaction score
2
If you put multiple events in a trigger that means it will run if any of those event happens.

try this:

Code:
Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Watch Tower
    Actions
        Set count = (count + 1)

Code:
Events
        Game - count becomes Equal to 3.00
    Conditions
    Actions
        Unit - Make Barracks 0007 <gen> Vulnerable
        Unit - Make Fortress 0078 <gen> Vulnerable
 

Jonny-Reaper

Active Member
Reaction score
0
that would work but i have more than 3 watch towers all over the map, it has to be 3 particular watch towers
 

Happy

Well-Known Member
Reaction score
71
check whether a watch tower dies...if so set CHECKINTEGER[PlayerNumber of Owner]= CHECKINTEGER[PlayerNumber of Owner] +1 ...
then check every 0.05 seconds i would say whether a CHECKINTEGER = 3 (i would do it with integer A) and if so make the barracks & the Fortress of the player vurnable.
 

viktorpapa

New Member
Reaction score
2
give some kind of classification for those particular watchtowers, like ancient or summoned, then add a condition about it to the counter.

Code:
        ((Triggering unit) is An Ancient) Equal to True
 

0WN3D

New Member
Reaction score
15
or use unit specific event ... When a specific unit dies and in combitnation with the above solutions...
 

Jonny-Reaper

Active Member
Reaction score
0
I've tried all of the suggestions, but i still can't get it to work, i have 3 towers, they get destroyed and 2buildings become vulnerable,but i cant get a trigger or triggers to do that,
 

viktorpapa

New Member
Reaction score
2
its such an easy task, if you cant sort out with the solutions above maybe world editor is not for you.
 

hopy

Active Member
Reaction score
64
Trigger:
  • Invulnerable
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Make Barracks 0007 &lt;gen&gt; Invulnerable
      • Unit - Make Fortress 0078 &lt;gen&gt; Invulnerable
      • Set Tower[1] = Watch Tower001 &lt;gen&gt;
      • Set Tower[2] = Watch Tower002 &lt;gen&gt;
      • Set Tower[3] = Watch Tower003 &lt;gen&gt;
Trigger:
  • Test
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit type of (Triggering Unit)) equal to Watch Tower
      • (Tower[1] is dead) Equal to True
      • (Tower[2] is dead) Equal to True
      • (Tower[3] is dead) Equal to True
    • Actions
      • Unit - Make Fortress Vulnerable
      • Unit - Make Barracks Vulnerable
(Eddited, 100% hand-typed though).
Try this, if it doesn't work I'm pritty sure you've done something wrong yourself, take another look at your trigger please since I'm 101% sure it should work.

You do know that 'Tower[1], Tower[2] and Tower[3] are Unit Array variables?
 

chobibo

Level 1 Crypt Lord
Reaction score
48
There's nothing wrong with my test map, it works properly. I'm using arrays because jonny needs these triggers for multiple units, and the only information he gave us is:
that would work but i have more than 3 watch towers all over the map, it has to be 3 particular watch towers
hence the need to make the triggers dynamic.

You do not need to check the unit type of the unit stored in the tower array, since the tower is already a watch tower and your already filtering for a specific unit.
 

hopy

Active Member
Reaction score
64
You do not need to check the unit type of the unit stored in the tower array, since the tower is already a watch tower and you're already filtering for a specific unit.

Though when the 3 towers are dead, you keep making the Fortress and the Barracks vulnerable everytime a Zergling dies... err I mean... Footman dies. That or disabling the trigger afther use, it's just a small detail though, nothing important.

I haven't looked at your test map, I'm sure it works and I hope Jonny is going to look at it. Basicly what I tried to do here was just to get the 2 triggers he needs, fully, with every little detail in it, in one post. As well as saying (if he's tried this already) that he should take another look at his trigger, or copie from your map ofcourse, though I think just editing them would be faster overal. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    Sticking with the desserts for now the latest recipe is Fried Apple Pies - https://www.thehelper.net/threads/recipe-fried-apple-pies.194297/
  • The Helper The Helper:
    Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top