(trigger) loading and spellbook

Status
Not open for further replies.
  • Chaos Knight spell book load Level 5
    • Events
      • Unit - A unit enters Life Spawn <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Greater than or equal to 5)
        • Then - Actions
          • Unit - Remove Spell Book (dummy) from (Triggering unit)
          • Unit - Add Spell Book (dummy2) to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Hero level of (Triggering unit)) Greater than or equal to 10
            • Then - Actions
              • Unit - Remove Spell Book (dummy2) from (Triggering unit)
              • Unit - Add Spell Book (dummy3) to (Triggering unit)
            • Else - Actions
I keep getting just book 2 over and over again... any idaes?
 
Last edited:
Level 8
Joined
Feb 15, 2009
Messages
463
  • Chaos Knight spell book load Level 5
    • Events
      • Unit - A unit enters Life Spawn <gen>
    • Conditions
      • Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Hero level of (Triggering unit) Greater than or equal to 5
        • Then - Actions
          • Unit - Remove Spell Book (dummy) from (Triggering unit)
          • Unit - Add Spell Book (dummy2) to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Hero level of (Triggering unit) Greater than or equal to 10
        • Then - Actions
          • Unit - Remove Spell Book (dummy2) from (Triggering unit)
          • Unit - Add Spell Book (dummy3) to (Triggering unit)
        • Else - Actions
this trigger can be simplified very easy ( again its me =d )
 
well i'm looking at this... it says equal too or greater than 5.. will that work if it says greater than or equal to 10 on the else?
  • Chaos Knight spell book load Level 5
    • Events
      • Unit - A unit enters Life Spawn <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Greater than or equal to 5)
        • Then - Actions
          • Unit - Remove Spell Book (dummy) from (Triggering unit)
          • Unit - Add Spell Book (dummy2) to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Greater than or equal to 10)
            • Then - Actions
              • Unit - Remove Spell Book (dummy) from (Triggering unit)
              • Unit - Add Spell Book (dummy3) to (Triggering unit)
            • Else - Actions
the 2nd one would be dummy rather than dummy2 also
 
in part 2 of the trigger u have 2 remove the dummyspellbook added in the 1st part not the generic one =D

  • Chaos Knight spell book load Level 5
    • Events
      • Unit - A unit enters Life Spawn <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Greater than or equal to 5)
        • Then - Actions
          • Unit - Remove Spell Book (dummy) from (Triggering unit)
          • Unit - Add Spell Book (dummy2) to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Hero level of (Triggering unit)) Greater than or equal to 10
            • Then - Actions
              • Unit - Remove Spell Book (dummy2) from (Triggering unit)
              • Unit - Add Spell Book (dummy3) to (Triggering unit)
            • Else - Actions
it's still just leaving me with the 2nd spell bok
 
Level 8
Joined
Aug 4, 2008
Messages
279
Ok, i read, it says ( if the unit is level 5 or more) and then (if the unit is level 10 or more)
In the first if/then/else, you will only receive the level 2 book, or if u are under level 5, it will active the else.But the else is 10+.Why dont try to make an exactly number? just ike 5-9 --- 10 - 20.Can you understand?
 
Fixed it looks like this for everyone to note...
  • Chaos Knight spell book load Level 5 Copy
    • Events
      • Unit - A unit enters Life Spawn <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 5)
              • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 6)
              • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 7)
              • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 8)
              • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 9)
        • Then - Actions
          • Unit - Remove Spell Book (dummy) from (Triggering unit)
          • Unit - Add Spell Book (dummy2) to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 10)
                  • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 11)
                  • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 12)
                  • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 13)
                  • ((Unit-type of (Triggering unit)) Equal to |c000000FFChaos Knight) and ((Hero level of (Triggering unit)) Equal to 14)
            • Then - Actions
              • Unit - Remove Spell Book (dummy) from (Triggering unit)
              • Unit - Add Spell Book (dummy3) to (Triggering unit)
            • Else - Actions
 
Status
Not open for further replies.
Top