Making a unit vulnerable after building destruction

  • Thread starter Thread starter Frockner
  • Start date Start date
F

Frockner

Guest
Hi all, I have a quick question. I want to do a trigger, but i am not quite sure how to set it up, here is what i want to happen.

I have a hero who will start out invulnerable (via a trigger) and with 3 buildings, or obelisks. When all 3 obelisks are destroyed (they are created through another trigger so they are not placed already in the map) i want the hero to become vulnerable. Do any of you know how I can go about this?

If you need more information, please ask. Thanks for any help.
 
Code:
Events
      A unit dies
Conditions
      Unit - Unit-type of (Dieing unit) equal to (Obelisk)
Actions
      Set (Obelisks_Killed) Equal to ((Obelisks_Killed) + (1))
      Run (Vulnerable)

Code:
            Vulnerable
Events
Condtions
      (Obelisks_Killed) Equal to (3)
Actions
      Make (Your hero) Vulnerable
If you wanted to save trigger space, just make the second trigger an if-then statement at the end of the first trigger.
 
Thanks for the reply, but its probably my fault i didn't mention it. There are three different types of Obelisks, so i don't think those conditions would work.
 
Just make this trigger instead:
Code:
Events
      A unit dies
Condtions
      Or any condtions are true
            Unit - Unit type of (Dieing unit) equal to (Obelisk 1)
            Unit - Unit type of (Dieing unit) equal to (Obelisk 2)
            Unit - Unit type of (Dieing unit) equal to (Obelisk 3)
Actions
      Set (Obelisks_Killed) Equal to ((Obelisks_Killed) + (1))
      Run (Vulnerable)
 
Thank you very much, Darthfett, it works perfectly. I really appreciate the help.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top