broken spell

3plX

New Member
Reaction score
3
If a unit has the bash ability, next time he casts thunder clap he will gain a command aura buff. If he casts thunder clap again, within 7 seconds, command aura will stack, up to 5 times. If he doesn't, the aura will disappear.


Trigger:
  • Untitled Trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Thunder Clap
    • Actions
      • Set cccCastingUnitttt = (Triggering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Level of Bash for cccCastingUnitttt) Equal to 1) and ((((Level of Command Aura 1 for cccCastingUnitttt) Greater than 0) or ((Level of Command Aura 2 for cccCastingUnitttt) Greater than 0)) or ((Level of Command Aura 3 for cccCastingUnitttt) Greater than 0))
        • Then - Actions
          • Unit - Set level of Command Aura 1 for cccCastingUnitttt to ((Level of Command Aura 1 for cccCastingUnitttt) + 1)
          • Set tttTimerrrr = 0
        • Else - Actions
          • Set tttTimerrrr = 0
          • Trigger - Turn on Stack Remove Timer <gen>
          • Unit - Add Command Aura 1 to cccCastingUnitttt
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Level of Bash for cccCastingUnitttt) Equal to 2) and ((((Level of Command Aura 1 for cccCastingUnitttt) Greater than 0) or ((Level of Command Aura 2 for cccCastingUnitttt) Greater than 0)) or ((Level of Command Aura 3 for cccCastingUnitttt) Greater than 0))
        • Then - Actions
          • Unit - Set level of Command Aura 2 for cccCastingUnitttt to ((Level of Command Aura 2 for cccCastingUnitttt) + 1)
          • Set tttTimerrrr = 0
        • Else - Actions
          • Set tttTimerrrr = 0
          • Trigger - Turn on Stack Remove Timer <gen>
          • Unit - Add Command Aura 2 to cccCastingUnitttt
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Level of Bash for cccCastingUnitttt) Equal to 3) and ((((Level of Command Aura 1 for cccCastingUnitttt) Greater than 0) or ((Level of Command Aura 2 for cccCastingUnitttt) Greater than 0)) or ((Level of Command Aura 3 for cccCastingUnitttt) Greater than 0))
        • Then - Actions
          • Unit - Set level of Command Aura 3 for cccCastingUnitttt to ((Level of Command Aura 3 for cccCastingUnitttt) + 1)
          • Set tttTimerrrr = 0
        • Else - Actions
          • Set tttTimerrrr = 0
          • Trigger - Turn on Stack Remove Timer <gen>
          • Unit - Add Command Aura 3 to cccCastingUnitttt




Trigger:
  • Stack Remove Timer
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • tttTimerrrr Greater than 7
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Bash for cccCastingUnitttt) Equal to 1
            • Then - Actions
              • Unit - Remove Command Aura 1 from cccCastingUnitttt
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Bash for cccCastingUnitttt) Equal to 2
            • Then - Actions
              • Unit - Remove Command Aura 2 from cccCastingUnitttt
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Bash for cccCastingUnitttt) Equal to 3
            • Then - Actions
              • Unit - Remove Command Aura 3 from cccCastingUnitttt
            • Else - Actions
          • Set tttTimerrrr = 0
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Set tttTimerrrr = (tttTimerrrr + 1)
 

Attachments

  • spell.w3x
    14.4 KB · Views: 202

Komaqtion

You can change this now in User CP.
Reaction score
469
Uhm... Ok ? :S

Well, you can start by at least saying what doesn't work, and what does about the spell ?!

Then we might be able to help you :p
 

3plX

New Member
Reaction score
3
Uhm... Ok ? :S

Well, you can start by at least saying what doesn't work, and what does about the spell ?!

Then we might be able to help you :p


it just adds all 3 auras at the same time. instead of 1, that based on level of bash

i.
cant.
fix.
it. :(
 
Reaction score
54
mmmMighTtttt want to do your conditions like this next time:

Trigger:
  • If - Conditions
    • And - Conditions
      • Triggering Unit has ability
      • Or - Conditions
        • Level of Aura 1 > 0
        • Level of Aura 2 > 0
        • Level of Aura 3 > 0


Also, I believe that your Add Command Aura's should be under Then, not Else.
And, aren't you supposed to be raising bash level, instead of command aura level?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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