• 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.

MUI help.. wont work

Status
Not open for further replies.
Level 10
Joined
Apr 13, 2005
Messages
630
I have this spell that im trying to make MUI. Im brand new to this so bare with me.


Edit the big problem is it seems to allow 2 units at the same time same player to cast but when u get to 3 units it will cause the spell to BUG and never ever work again

  • Dagger Start
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Dagger Sweep
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • BF_Skip Equal to 0
        • Then - Actions
          • Trigger - Turn on Dagger Loop <gen>
        • Else - Actions
      • Set DS_Times = (DS_Times + 1)
      • Set DS_Skip = (DS_Skip + 1)
      • Set DS_Counter[DS_Times] = 1
      • Set DS_Off[DS_Times] = True
      • Set DS_Hero[DS_Times] = (Casting unit)
      • Animation - Play DS_Hero[DS_Times]'s Attack animation
      • Animation - Change DS_Hero[DS_Times]'s animation speed to 50.00% of its original speed
      • Wait 0.00 seconds
      • Unit - Pause DS_Hero[DS_Times]

  • Dagger Loop
    • Events
      • Time - Every 0.15 seconds of game time
    • Conditions
    • Actions
      • For each (Integer DS) from 1 to DS_Times, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DS_Off[DS] Equal to True
              • DS_Counter[DS] Equal to 5
            • Then - Actions
              • Set DS_Skip = (DS_Skip - 1)
              • Set DS_Off[DS] = False
              • Animation - Change DS_Hero[DS]'s animation speed to 100.00% of its original speed
              • Unit - Unpause DS_Hero[DS]
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • DS_Skip Equal to 0
                • Then - Actions
                  • Trigger - Turn off Dagger Loop <gen>
                • Else - Actions
            • Else - Actions
              • Set DS_Counter[DS] = (DS_Counter[DS] + 1)
              • Unit - Make DS_Hero[DS] face ((Facing of DS_Hero[DS]) - 180.00) over 0.00 seconds
 
Last edited:
Level 10
Joined
Apr 13, 2005
Messages
630
DS_times is set up at begining. everytime sum1 fires the trigger it goes +1 up to infinity

Also at AD i need a wait then pause else the spell runs unlimited. it just keeps firing off and off.

Edit i removed the wait still not working but instead of 3 set off it goes and screws up at 10 so its improving gonna run multi test brb
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
1: use wait 0.00
2: The problem is:

Set DS_Skip = (DS_Skip + 1)

Then

Set DS_Skip = (DS_Skip - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DS_Skip Equal to 0
Then - Actions
Set DS_Times = 0
Trigger - Turn off Dagger Loop <gen>
Else - Actions

The DS_Skip is always 0 after a shot so it DS_Times DOESN'T go to infinity :)
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
A tip:

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DS_Times Equal to 8000
Then - Actions
Set DS_Times to 0

Oh god... Your trigger is totally messed up Oo I can hardly follow what you do for what... For some things it doesn't even have a meaning...
I only suggest rewriting...
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
"For each (Integer DS) from 1 to DS_Times, do (Actions)"

So you have to set DS_Times to 0... Sometime... Anyway this trigger is a total chaos so it's hard to find a solution like this...

OH GOT IT BOSS!

rewrite that set to 0 part that you deleted and change this:

BF_Skip Equal to 0

to DS_Skip xD I think you mixed your skills xD
 
Level 5
Joined
Nov 22, 2009
Messages
181
i thought a trigger could only be mui if there are NO waits. or is that incorrect? and why is the wait in there in the first place? 1)it is at the end of the trigger and does not seem to have any purpose and 2) isn't it completely useless to have a wait that does not wait?
and 3) doesn't a wait automatically revert to .10 seconds if the wait value is less than
.10?

edit: ok so it is not technically at the end of the trigger but still...
 
Level 10
Joined
Apr 13, 2005
Messages
630
I need a wait for the attack animation to go thru else the dude doesnt start attacking til the end of spell. I fixed the BS_skip crap. still aint working. Anyone care to give me a sample of a MUI spell that i can look at to get the knowledge of it cuz truthfully i dont get mUI for crap
 
I need a wait for the attack animation to go thru else the dude doesnt start attacking til the end of spell. I fixed the BS_skip crap. still aint working. Anyone care to give me a sample of a MUI spell that i can look at to get the knowledge of it cuz truthfully i dont get mUI for crap

try to remove the wait and then pause him first before you play animation...
 
Status
Not open for further replies.
Top