Trigger not working?

danpe

New Member
Reaction score
5
Code:
Hero levels
    Events
        Unit - A unit Gains a level
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Difficulty Equal to 1
                Difficulty Equal to 2
                Difficulty Equal to 3
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Level of (Triggering unit)) Equal to 18
                    Then - Actions
                        Hero - Disable experience gain for (Triggering unit)
                    Else - Actions
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Difficulty Equal to 4
                        (Level of (Triggering unit)) Equal to 25
                    Then - Actions
                        Hero - Disable experience gain for (Triggering unit)
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                Difficulty Equal to 5
                                (Level of (Triggering unit)) Equal to 25
                            Then - Actions
                                Hero - Make (Owner of (Triggering unit)) Heroes gain 50.00% experience from future kills
                            Else - Actions

Why this trigger dosen't work?
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Have any trigger that actually sets the difficulty? And at the first line, I think you want a Or - Multiple Condtion right?
 

Sajberhippie

New Member
Reaction score
30
Except for what Draphoelix said, we would need more information. What should the trigger do, what is it that doesn't work, what solutions have you tried? Have you tested how far the trigger works? For example, add a "create unit at X,X," after certain "If"'s, to check where it goes wrong.
 

danpe

New Member
Reaction score
5
Oh in the first it suppose to be Or - Multiple Condition...
i'll try fix it

like this:

Code:
If - Conditions
    Or - Any (Conditions) are true
        Conditions
            Difficulty Equal to 1
            Difficulty Equal to 2
            Difficulty Equal to 3

?
 

Sajberhippie

New Member
Reaction score
30
Oh in the first it suppose to be Or - Multiple Condition...
i'll try fix it

like this:

Code:
If - Conditions
    Or - Any (Conditions) are true
        Conditions
            Difficulty Equal to 1
            Difficulty Equal to 2
            Difficulty Equal to 3

?

Yes.
Also, you probably have to have a trigger to set difficulty, right?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top