Terrain Death Trigger

  • Thread starter Thread starter lVlaStAx0
  • Start date Start date
L

lVlaStAx0

Guest
This is for a maze and the current trigger I have that does not work is:

Code:
Event: Every (.50) seconds of game time,
Condition: None
Action: Unit Group - Pick every unit (Units of type (the maze guy) and do If ((Terrain type at (Position of (Picked unit))) Equal to Felwood - Poison) Then do (Unit - kill (Triggering unit)) Else do (Do nothing)
 
Replace the Triggering unit part in your trigger with Picked Unit
 
Thanks, that worked. I am also having a problem with an end area trigger which was orgininaly posted by Wark, but I made a few changes:

Code:
    Events
        Unit - A unit enters (Region 005 <gen>)
    Conditions
        (Unit-type of (Triggering unit)) Equal to (|cff777777Zergling|r)
    Actions
        Player Group - Pick every player in (All players controlled by a User player) and do (Unit Group - Pick every unit in (Units in (Playable map area)) and do (If ((Unit-type of (Picked unit)) Equal to (|cff777777Zergling|r)) then do (Unit - Move (Picked unit) instantly to (Center of Region 005 <gen>)) else do (Do nothing)))
        Wait 5.00 seconds
        If ((Region 005 <gen> contains (Entering unit)) Not equal to True) then do (Player Group - Pick every player in (All players controlled by a User player) and do (Hero - Instantly revive (Picked unit) at (Center of Region 005 <gen>), Hide revival graphics)) else do (Do nothing)
        Trigger - Turn off (This trigger)

All the living Zerglings are moved to the location but none of the dead ones are revived there or anywhere.
 
The problem could be that you are reviving heroes, i mean is ther zerglings heroes?
 
The zerglings are heroes, it was a copy from the Death Knight.
 
You have the condition if region dosnt contain entering unit, Witch is impossible since the whole thing is triggered by entering unit.

Edit-

Is the Zergling Pre placed or is it something you spawn in the map? (by triggers)?
 
The zerglings are created using this trigger:

Code:
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Player Group - Pick every player in (All players controlled by a User player) and do (Unit - Create 1 |cff777777Zergling|r for (Picked player) at (Center of Region 129 <gen>) facing 0.00 degrees)


You have the condition if region dosnt contain entering unit, Witch is impossible since the whole thing is triggered by entering unit.

Would Triggering unit work?
 
If ((Region 005 <gen> contains (Entering unit)) Not equal to True) then do (Player Group - Pick every player in (All players controlled by a User player) and do (Hero - Instantly revive (Picked unit) at (Center of Region 005 <gen>), Hide revival graphics)) else do (Do nothing)
Trigger - Turn off (This trigger)

Instead of that

You could have 1 variable group for dead Zerglings

And a trigger adding them there when it dies so its like

Code:
event - Unit Dies
Condition - Unit type of dying unit = Zergling
Actions- 
Unit Add unit to unit group (add dying unit to DeadZergling)

Here comes the revive part that you add the the trigger that moves the zerglings

Code:
Actions
Unit group Pick every units in DeadZerglings and do (Actions)
 -Hero instantly Revive Picked unit at position of (region)
 -Unit Remove Picked Unit from (DeadZerglings)

Sry if any of this dosnt match up 100% my editor is closed

P.S. If this dont work let me know
 
Ive never used variables before. Would it be unit group, unit-type, or just unit for the variable type?
 
Unit Group Variable in this case

-Edit-
I have made it in the trigger editor this time. Still not tested Tho

I created 1 variable called ZerglingGroup for the dead zerglings

Trigger 1 for move and revive
Code:
    Events
        Unit - A unit enters Your Region <gen>
    Conditions
        (Unit-type of (Triggering unit)) Equal to Zergling
    Actions
        Trigger - Turn off (This trigger)
        Unit Group - Pick every unit in (Units of type Zergling) and do (Unit - Move (Picked unit) instantly to (Center of Your Region <gen>))
        Wait 2.00 seconds
        Unit Group - Pick every unit in ZerglingsGroup and do (Hero - Instantly revive (Picked unit) at (Center of Your Region <gen>), Hide/Show revival graphics)
        Unit Group - Pick every unit in ZerglingsGroup and do (Unit Group - Remove all units from ZerglingsGroup)

Second trigger for when the zergling dies
Code:
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Zergling
    Actions
        Unit Group - Add (Dying unit) to ZerglingsGroup
 
event - Unit Dies
Condition - Unit type of dying unit = Zergling
Actions-
Unit Add unit to unit group (add dying unit to DeadZergling)

I cant find anything that does this, closest I saw was
Code:
set variable deadzerglings = (none of the options work as far as I know)
 
Events
Unit - A unit enters Your Region <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Zergling
Actions
Trigger - Turn off (This trigger)
Unit Group - Pick every unit in (Units of type Zergling) and do (Unit - Move (Picked unit) instantly to (Center of Your Region <gen>))
Wait 2.00 seconds
Unit Group - Pick every unit in ZerglingsGroup and do (Hero - Instantly revive (Picked unit) at (Center of Your Region <gen>), Hide/Show revival graphics)
Unit Group - Pick every unit in ZerglingsGroup and do (Unit Group - Remove all units from ZerglingsGroup)

Is that supposed to be before the other actions?

Do You have RoC or TFT?

I have no idea
 
i made a new set of triggers, They wont corrospod with your current ones,

When i say do you have RoC or TFT im simply asking if you have Expansion or normal Wc3

TfT = Wc3 The Frozen Throne

RoC = Wc3 Rain of Chaos
 
In that case I have Frozen Throne.

I tested it and the trigger worked, thanks a ton for all your help. I can put you in the loading screen if you want.
 
Then you should be able to find the triggers, But however dont use the

Set variable Action



Use the Unit group add unit to unit group

Under the unit group catagories. (Doh) :D

THE VARIABLE MUST BE A UNIT GROUP VARIABLE!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    How often does the Trending Content box refresh?
  • The Helper The Helper:
    Also, in the last template there was a seperation between sticky threads and regular threads in the forum
  • Ghan Ghan:
    Not sure. It's probably part of a cron job.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top