• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] How can i prevent this skip to the end?

Status
Not open for further replies.
Level 18
Joined
Jun 2, 2009
Messages
1,233
When you press W, your W ABILITY skill level increases. If you have 2 booleans true, each pressing should make it to 2, then make it to 4 after second cast.

But here is what happens

I am turning SpellMagicArrow boolean True
I am turning SpellFlameStrike boolean True

When i press to W, it skips to level 4 instead of increasing it to 2 because according if runs after SpellMagicArrow.

Here is what i want
I am turning SpellMagicArrow boolean True
I am turning SpellFlameStrike boolean True

I am pressing W, i want to set ability level to 2
Then second cast, i want to set it level to 4
But it increasing it to 4 immediately.
How to solve this?

  • SpellSagaDegiss Copy
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to SAG //
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellMagicArrow[(Player number of (Owner of (Triggering unit)))] Equal to True
        • Then - Actions
          • Set NextSpell[(Player number of (Owner of (Triggering unit)))] = Spell[2]
          • Unit - Set level of Büyü Yap // for (Triggering unit) to 2
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellFireball[(Player number of (Owner of (Triggering unit)))] Equal to True
        • Then - Actions
          • Set SpellSayisi[(Player number of (Owner of (Triggering unit)))] = (SpellSayisi[(Player number of (Owner of (Triggering unit)))] + 1)
          • Set NextSpell[(Player number of (Owner of (Triggering unit)))] = Spell[3]
          • Unit - Set level of Büyü Yap // for (Triggering unit) to 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellFlameStrike[(Player number of (Owner of (Triggering unit)))] Equal to True
        • Then - Actions
          • Set NextSpell[(Player number of (Owner of (Triggering unit)))] = Flame Strike // 3
          • Unit - Set level of Büyü Yap // for (Triggering unit) to 4
          • Set SpellSayisi[(Player number of (Owner of (Triggering unit)))] = (SpellSayisi[(Player number of (Owner of (Triggering unit)))] + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellHolyLight[(Player number of (Owner of (Triggering unit)))] Equal to True
        • Then - Actions
          • Set NextSpell[(Player number of (Owner of (Triggering unit)))] = Holy Light // 4
          • Unit - Set level of Büyü Yap // for (Triggering unit) to 5
          • Set SpellSayisi[(Player number of (Owner of (Triggering unit)))] = (SpellSayisi[(Player number of (Owner of (Triggering unit)))] + 1)
        • Else - Actions
I have up and changed my system with Spell Book system. It is way better than my previous (this one) system.
 
Last edited:
Level 29
Joined
Sep 26, 2009
Messages
2,595
I am not sure what you are trying to achieve with the trigger, but from the trigger flow it is apparent that your two conditions (SpellMagicArrow, SpellFlameStrike) are not exclusive to one another, but you want them to be.

What happens if SpellFlameStrike is True, but SpellMagicArrow is False? Can that ever happen and if yes, what happens? Is level set immediately to 4?
 
Level 18
Joined
Jun 2, 2009
Messages
1,233
I have already gave up and changed system.
What happens if SpellFlameStrike is True, but SpellMagicArrow is False? Can that ever happen and if yes, what happens? Is level set immediately to 4?
I was tried to do something like this
Hero has spell A and B and C.
When you press the W it will select A
When you press the W it will select B
When you press the W it will select C
But i gave up.
 
Status
Not open for further replies.
Top