Trigger questions...

Lizidian

New Member
Reaction score
13
Ok i dont know why these triggers dont work... any help would be nice...

Code:
Trees
    Events
        Destructible - A destructible within (Playable map area) dies
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Destructible-type of (Dying destructible)) Equal to Cityscape Fall Tree Wall
                (Destructible-type of (Dying destructible)) Equal to Cityscape Snowy Tree Wall
                (Destructible-type of (Dying destructible)) Equal to Cityscape Summer Tree Wall
                (Destructible-type of (Dying destructible)) Equal to Cityscape Winter Tree Wall
    Actions
        Destructible - Create a (Destructible-type of (Dying destructible)) at (Position of (Dying destructible)) facing (Random angle) with scale 1.00 and variation 0

Code:
Gate Death
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Guard Tower 0097 <gen> Equal to (Dying unit)
                Guard Tower 0098 <gen> Equal to (Dying unit)
            Then - Actions
                Destructible - Kill Elven Gate (Vertical) 0345 <gen>
            Else - Actions
 
For destruc. use ressurect dying destuc.
 
For the second one, you are going to want to put "or, multiple conditions" and put both of the guard tower condition under that condition if you want it to be if either one dies the destroy because for what you have now, the only way it would work is if both towers died at exactly the same millisecond. Or, you could do a boolean check for both towers instead, if you wanted them both to be dead before the gate is destroyed. Its quite obvious that it doesnt work the way you have it. Can you understand that or is it confusing?
 
The first one works.
If you look carefully at the tiny text shown when you select the "Destructible within rect dies" event you'll see
Warcraft Editor said:
Only the first 64 destructibles within the rect when this event is registered are monitored for death. It is best to use this event for rects containing only a few destructibles.
So maybe your destroying one of the destructibles that aren't registered in the event.

In the second trigger, the condition in your If is a little weird.
if (Dying unit) is <Guard 0097> AND (Dying unit) is <Guard 0098> then...
Only one of them will be (Dying unit).
The other maybe is still alive.
Or it died.

Change the events and use a comparison
Code:
Events
    <Guard 0097> dies
    <Guard 0098> dies
Conditions
    (Evaluation count of (This trigger)) Equal to 2
Actions
    Kill <Elven Gate (Vertical) 0345>
Whenever you kill the first one (97 or 98), evaluation count will become 1.
Then when you kill the other, evaluation count becomes 2 and the action fires.
 
yep so i set my gate trigger to this

Code:
Gate Death
    Events
        Unit - Guard Tower 0097 <gen> Dies
        Unit - Guard Tower 0098 <gen> Dies
    Conditions
        (Evaluation count of (This trigger)) Equal to 2
    Actions
        Destructible - Kill Elven Gate (Vertical) 0345 <gen>

and it still doesnt work and i dont understand what i should do with the tree trigger... help plz :D lol
 
Use something like this: Vars used: eventstriggerednumber = integer var
Code:
Events: A unit dies
Conds: dying unit = guard tower 97 or dying unit = guard tower 98
Acts: Set eventstriggerdnumber = eventstriggerednumber + 1
And to open the gate use something like:
Code:
Events: Every .1 seconds of the game
Conds: eventstriggerdnumber = 2
Acts: Kill Elven Gate (Vertical) 0345 <gen>
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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