• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

(trigger) loading and spellbook

Status
Not open for further replies.
Level 8
Joined
Aug 3, 2008
Messages
257
  • 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 )
 
Level 8
Joined
Aug 3, 2008
Messages
257
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
 
Level 8
Joined
Aug 3, 2008
Messages
257
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?
 
Level 8
Joined
Aug 3, 2008
Messages
257
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